View unanswered posts | View active topics It is currently Tue Jul 23, 2019 6:19 am



Reply to topic  [ 6 posts ] 
 Timer 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Timer
Is there any function to know in which MS or S the timer is?


Mon Sep 19, 2011 10:18 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Timer
Well simply checking whether it ticks over less than once a frame update would tell you pretty reliably.


Mon Sep 19, 2011 10:22 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Timer
Excuse my ignorance, but how would I do that?


Mon Sep 19, 2011 10:23 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Timer
By timing the timer, using a MS timer, and see if they change at the same rate or not.


Mon Sep 19, 2011 10:26 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 11426
Location: Here
Reply with quote
Post Re: Timer
Code:
Timer.ElapsedSimTimeS

or
Code:
Timer.ElapsedSimTimeMS

is what you might be looking for if I understood your question.


Mon Sep 19, 2011 10:43 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Timer
Yes, that's what I was looking for. Thanks!


Mon Sep 19, 2011 10:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.017s | 13 Queries | GZIP : Off ]