do you know how to use gettimeofday for measuring computing time? I can measure one time by this code:
char buffer[30]; struct timeval tv; time_t curt
Your curtime variable holds the number of seconds since the epoch. If you get one before and one after, the later one minus the earlier one is the elapsed time in seconds. You can subtract time_t values just fine.
curtime
time_t