This shows you the differences between two versions of the page.
lua:gettime [2015/01/08 15:46] vodur created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Returns the current system time in seconds. Similar to calling os.time() with no argument, but also gives milliseconds. | ||
- | |||
- | <code lua> | ||
- | say(os.time()) | ||
- | say(gettime()) | ||
- | </code> | ||
- | |||
- | <code> | ||
- | You say '1420731923' | ||
- | You say '1420731923.3929' | ||
- | </code> | ||
- | |||