I\'m writing a program in C-language which its a simulation program for one barbershop one chair model under Ubuntu 13.04 environment .
I have a timer () function which
If you are on ubuntu, you can just do:
srand(time(NULL));
You don't need your own timer() function. If you need more fine resolution than 1 second, look into gettimeofday.
timer()
gettimeofday