Discussion of Inner Space
Moderators: Lavish Software Team, Moderators
-
Darseth
- Non-Subscriber
- Posts: 4
- Joined: Sat Jan 08, 2005 12:41 am
Post
by Darseth » Tue Feb 05, 2008 12:01 am
I couldn't find anything in the wiki about timers, are there any built in lavishscript or do I just need to check the system time, wait a bit, check it again ect ect.
-
Lax
- Owner
- Posts: 6634
- Joined: Fri Jun 18, 2004 6:08 pm
Post
by Lax » Tue Feb 05, 2008 10:48 am
I would use timestamps, yes. ${Script.RunningTime} will give you milliseconds since the script was launched, or ${LavishScript.RunningTime} will give you the running time of the session, also in ms.
If you'd like to have your timers polled each frame, you can attach an atom to the OnFrame event for that
-
Jon100
- Non-Subscriber
- Posts: 32
- Joined: Wed Nov 24, 2004 1:38 pm
Post
by Jon100 » Wed Feb 06, 2008 4:41 am
If you are looking for longer timers then Time.Timestamp is also good as it is in seconds and won't wrap around periodically.
Jon100 / Dorset
"No of course I don't use that macro thingy to 6 box... I just use 6 keyboards at once..."