Jump to content

DosTmrQueryTime: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 11: Line 11:


rc = DosTmrQueryTime(pqwTmrTime);
rc = DosTmrQueryTime(pqwTmrTime);
</PRE>


</PRE>
==Parameters==
==Parameters==
; pqwTmrTime (PQWORD) - output : Time.
;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


* 0        NO_ERROR
* 87        ERROR_INVALID_PARAMETER
* 53        ERROR_TMR_NO_DEVICE
* 99        ERROR_DEVICE_IN_USE
* 536      ERROR_TMR_INVALID_TIME
==Remarks==
==Example Code==
<PRE>
</PRE>
==Related Functions==
==Related Functions==
* [[OS2 API:CPI:DosDevConfig|DosDevConfig]]
* [[DosDevConfig]]
* [[OS2 API:CPI:DosDevIOCtl|DosDevIOCtl]]
* [[DosDevIOCtl]]
* [[OS2 API:CPI:DosPhysicalDisk|DosPhysicalDisk]]
* [[DosPhysicalDisk]]
 


[[Category:The OS/2 API Project]]
[[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

Related Functions