Clock in c code