DosTmrQueryTime: Difference between revisions
Appearance
mNo edit summary |
m Ak120 moved page OS2 API:CPI:DosTmrQueryTime to DosTmrQueryTime |
(No difference)
|
Revision as of 15:42, 5 December 2016
Description
Provides a snapshot of the time from the IRQ0 high resolution timer (Intel 8254).
Syntax
#define INCL_DOSPROFILE #include <os2.h> PQWORD pqwTmrTime; /* Time. */ APIRET rc; /* Return Code. */ rc = DosTmrQueryTime(pqwTmrTime);
Parameters
- pqwTmrTime (PQWORD) - output
- Time.
A snapshot of the time from the IRQ0 high resolution timer.
Return Code
rc (APIRET) - returns
DosTmrQueryTime returns the following values:
- 0 NO_ERROR
- 87 ERROR_INVALID_PARAMETER
- 53 ERROR_TMR_NO_DEVICE
- 99 ERROR_DEVICE_IN_USE
- 536 ERROR_TMR_INVALID_TIME