Id like this number to start increasing from 0 once the application starts.
How can I do this? Ive tried methods like:
int _tmain(int argc, _TCHAR* argv[]){ FILETIME now; float tempTime = 0; float curTime = 0; while(1) { GetSystemTimeAsFileTime(&now); if(now.dwLowDateTime >= tempTime+0.00009f) { tempTime = now.dwLowDateTime; curTime += 0.0001f; } std::cout << curTime << std::endl; }}
But for some reson that is to slow. or I dunno. Is there anything out there that allready does what I need?