Hi,
Just a quick one by way of a short story
I started off by finding out the execution time of my c programs using the the time_t variables in time.h.
These only seemed to record a minimum of seconds which was OK when my programs took many minutes, and even hours sometimes :-)
Anyhow, the resolution is much too coarse so when I started MPI programs, well I was much happier with the very precise timings you could get off that library.
So, if with sequential programs I took to using MPI, only for the timer. I've done worse things ...
However I found sys/time.h in my include directory and it doesn't have milliseconds res. but it has microseconds. That's pretty good. I get the time of day in secs and milliseconds and then I subtract a new reading of the time day when all my operations are finished.
So question is, does that all sound OK? I mean, I can't be accused of a cheap hack anymore?