#99479 - HotChilli - Tue Aug 22, 2006 12:19 am
Help!
For example I have a code.
How can I implement GetTime() function?
1. I trying use TIMERS but that's work mystycal. :(
2. VCOUNT can't work properly with calculation more than 1000/60 ms...
3. VBLANK counting method not pass also because not profile fast and slow functions in one frame-calculation...
Can somebody write and explain code of GetTime()? GetTime() returns current time in milliseconds...
For example I have a code.
Code: |
while(1) { old_time = GetTime(); // in milliseconds! DrawAll(); cur_time = GetTime(); printf("fps: %d", 1000 / (cur_time-old_time)); swiWaitForVBlank(); } |
How can I implement GetTime() function?
1. I trying use TIMERS but that's work mystycal. :(
2. VCOUNT can't work properly with calculation more than 1000/60 ms...
3. VBLANK counting method not pass also because not profile fast and slow functions in one frame-calculation...
Can somebody write and explain code of GetTime()? GetTime() returns current time in milliseconds...