#include <time.h> clk = clock();
"clock" returns an approximation of how much processor time has been used by the program during execution. Timing may not begin precisely at the point that the program begins execution. However, during the execution of a program, all calls to "clock" will be relative to the same initial point -- the results of multiple calls can be compared.
Copyright © 1996, Thinkage Ltd.