TicksToSeconds

Converts clock ticks to seconds

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Time/Date Manipulation

Syntax

  #include <nwtime.h>  
   
  void TicksToSeconds  (  
     LONG   Ticks,   
     LONG  *seconds,   
     LONG  *tenthsOfSeconds);
  

Parameters

ticks
(IN) Specifies the number of ticks to convert to seconds.
seconds
(OUT) Points to the number of seconds.
tenthsOfSeconds
(OUT) Points to the tenths of seconds.

Remarks

TicksToSeconds converts clock ticks to seconds and tenths of seconds. To convert seconds back to clock ticks, call the SecondsToTicks function.

One IBM PC clock tick is approximately 1/18 second. (Eighteen [18.21] clock ticks equal approximately 1 second.)

See Also

SecondsToTicks