Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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: 8662

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