Jump to content

Lua Guide: os.clock


PublicHax

Recommended Posts

Description
os.clock - Returns the time in seconds with millisecond precision since script started.

Syntax
Snap to window: no.
Working with a minimized window: yes.

os.clock ()
Examples of
--lua
log (os.clock ()) - seconds elapsed since the pilot was started
--lua
local t = os.clock () + 3
while t> os.clock () do - fulfill the condition for 3 seconds
     log (111)
     wait (100)
end

Link to comment
Share on other sites

  • 8 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.