Get time: now
#include <stdio.h> /* For input and output */ #include <time.h> /* For time() and clock() functions */ void main() { long time_taken = clock(); printf("%ld\n", time_taken); printf("%d\n", CLOCKS_PER_SEC); }