CLOCKS_PER_SEC - C time.h

C examples for time.h:CLOCKS_PER_SEC

Type

macro

From


<ctime>
<time.h>

Description

Clock ticks per second

Demo Code


#include <stdio.h>
#include <time.h>

int main()/*from   w  ww .j a  v  a 2s  .  c  o  m*/
{
    clock_t t = clock();
    
    printf(" %u \n", CLOCKS_PER_SEC);
    printf(" %u \n", t);
    return 0;
}

Related Tutorials