SecondsToTicks

Converts seconds to clock ticks

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 SecondsToTicks  (  
     LONG   seconds,   
     LONG   tenthsOfSeconds,   
     LONG  *ticks);
  

Parameters

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

Remarks

To convert clock ticks back to seconds, call the TicksToSeconds function.

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

See Also

TicksToSeconds