// At some point, get the Tick Count
DWORD tickAtStart = GetTickCount();
...
// Do your stuff
...
// At some other point get the change of Tick Count
DWORD elapsedTicks = GetTickCount() - tickAtStart;
// elapsedTicks holds the number of milliseconds since tickAtStart was set.
/Per
if (typos) cout << "My fingers are faster than my brain. Sorry for the typos.";
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.