[c] How do I measure a time interval in C?