Jump to content

DosTmrQueryTime: Difference between revisions

From EDM2
Created page with "==Description== Provides a snapshot of the time from the IRQ0 high resolution timer (Intel 8254). ==Syntax== <PRE> #define INCL_DOSPROFILE #include <os2.h> PQWORD pqwTmrT..."
 
Line 36: Line 36:
</PRE>
</PRE>
==Related Functions==
==Related Functions==
* [[OS2 API:CPI:DosDevConfig|CPI:DosDevConfig]]
* [[OS2 API:CPI:DosDevConfig|DosDevConfig]]
* [[OS2 API:CPI:DosDevIOCtl|CPI:DosDevIOCtl]]
* [[OS2 API:CPI:DosDevIOCtl|DosDevIOCtl]]
* [[OS2 API:CPI:DosPhysicalDisk|CPI:DosPhysicalDisk]]
* [[OS2 API:CPI:DosPhysicalDisk|DosPhysicalDisk]]




[[Category:The OS/2 API Project]]
[[Category:The OS/2 API Project]]

Revision as of 19:22, 21 June 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

Remarks

Example Code


Related Functions