Original Post
I need to capture a beginning time and an ending time to see how long a functions runs, using:
time_t start,end;
long dif;
time(&start);
function();
time(&end);
Will only give me to the nearest second, what I want is milliseconds.
I seem to remember using gettimeofday() a year or two ago, but for some reason it doesn''t work in MSVC6.
How can I capture this time I want in milliseconds?