I have a program for class, and I need to implement a timer, just like a stopwatch, time the milliseconds between displaying something and the user inputting something. Someone told me to call gettimeofday() twice and take the difference. I don't know how to implement that though. Any other ideas?