| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <time.h> clock_t clock(void); |
This function returns the number of clock ticks since an arbitrary time,
actually, since the first call to clock, which itself returns
zero. The number of tics per second is CLOCKS_PER_SEC.
The number of tics.
| ANSI/ISO C | C89; C99 |
| POSIX | 1003.2-1992; 1003.1-2001 |
printf("%d seconds have elapsed\n", clock()/CLOCKS_PER_SEC);
|