clock

Returns the number of hundredths of seconds since the NLM application began executing.

Library:LibC
Classification:ANSI
Service:Time

Syntax

  #include <time.h> 
   
  clock_t clock ( void );
  

Return Values

If successful, returns the number of hundredths of seconds encoded into type clock_t. Otherwise, returns -1.

Remarks

To determine the time in seconds, the value returned by clock should be divided by the value of the macro CLOCKS_PER_SEC.

See Also