DosTmrQueryTime: Difference between revisions
Appearance
mNo edit summary |
|||
Line 11: | Line 11: | ||
rc = DosTmrQueryTime(pqwTmrTime); | rc = DosTmrQueryTime(pqwTmrTime); | ||
</PRE> | |||
==Parameters== | ==Parameters== | ||
; | ;pqwTmrTime (PQWORD) - output : Time. | ||
A snapshot of the time from the IRQ0 high resolution timer. | A snapshot of the time from the IRQ0 high resolution timer. | ||
==Return Code== | ==Return Code== | ||
rc (APIRET) - returns | rc (APIRET) - returns | ||
DosTmrQueryTime returns the following values: | 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 | |||
==Related Functions== | ==Related Functions== | ||
* [[ | * [[DosDevConfig]] | ||
* [[ | * [[DosDevIOCtl]] | ||
* [[ | * [[DosPhysicalDisk]] | ||
[[Category: | [[Category:Dos]] |
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