Clock in C code