You could use a normal int or long and just increment it every 10th of a second (use nanosleep or usleep to keep time), but unless you're using a real-time scheduler you're not guaranteed it'll be perfect, you should use gettimeofday calls to verify how long you slept.