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 timerOriginally Posted by Salem