(ANSI Standard)
#include <time.h> diff = difftime(time1,time2);
"difftime" calculates the number of seconds between two time numbers. The result of "difftime" is always double. Note that this is the only portable way to calculate the difference between two time numbers. There is no uniformity in how time numbers express times on various systems.
Copyright © 1996, Thinkage Ltd.