Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Lua timing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 ixjackinthebox   Members   -  Reputation: 101

Like
0Likes
Like

Posted 16 December 2012 - 05:08 PM

In lua how can I get the time between two points
so if I press the enter key
and then press the enter key again a bit later
it would tell me the time passed in between the two points

How can I do that?

Sponsor:

#2 JTippetts   Moderators   -  Reputation: 8647

Like
0Likes
Like

Posted 16 December 2012 - 05:27 PM

You can use the function os.time() to get the time since epoch, or os.date() to get current the date and time, or os.clock() to get the time since program start. Barring those, you could bind to an external time tracking library.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS