| | How do I get the current time (in milliseconds or better) using C++? I need to find the difference between two intervals in time so my program can adjust so it won’t be real fast on some computer and real slow on others. I have tried time() from ctime.h. It turns out that it is not accurate at all (as it seems to round to the nearest second, which is not good enough for my program). I have also tried clock() then dividing by CLOCKS_PER_SEC but doing this worries me because it is a macro and is getting the CLOCKS_PER_SEC of the computer that compiled the program, not the one that is running it. Is there another option that works better? Thanks, Sparkx |

