Skip to main content
GameDev.net gamedev.net
🔒 Locked

Help with timer function.

Started by tHiSiSbOb Mar 1, 2004 at 9:21 PM 0 replies 200+ views
Original Post
tHiSiSbOb
tHiSiSbOb
I wrote a simple program for physics class that determins the range of projectiles. I am using the following code to calculate the number of seconds that have elapsed:
time=float(((timeGetTime()-initTime)/1000.0f)*multiplyer);   
I put the multiplyer there to speed things up. Originally I thought that it worked fine, but I just found out that as I increase the value of multiplyer, the time gets more inaccurate. What can I do to correct this?? [edited by - tHiSiSbOb on March 1, 2004 10:23:36 PM]
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.