Quote Originally Posted by Salem
Yeah, but clock starts at 0, at program start, so testing it first is still going to produce much the same answer in both program instances.
Before I posted I wrote a program just to make sure it worked and it did, but later when I ran the program, I kept getting zero for both as you pointed out above. So you are right, it won't work. Anyway, you will have to use a non-portable solution like QueryPerformanceCounter in windows or another high resolution timer