Lua
C++
Edit

Millisecs

This function returns the current system time, in milliseconds.

Syntax

Returns

Returns the current system time, in milliseconds.

Example

-- Get the initial system time
local starttime = Millisecs()

-- Pause for one second
Sleep(1000)

-- Show the current time relative to the starting time
local currenttime = Millisecs() - starttime
Print(currenttime)

-- Pause for one second
Sleep(1000)

-- Show the current time relative to the starting time
currenttime = Millisecs() - starttime
Print(currenttime)
Copyright © 2024 Ultra Software.
All rights reserved.