GE Lua Documentation

Press F to search!

getSystemTimeMS

Definition


-- @/=[C]:-1
function getSystemTimeMS(...)

Callers

@/lua/ge/extensions/scenario/scenarios.lua
  if assignedInput then
    local now = Engine.Platform.getSystemTimeMS()
    local deltaMS = now - (assignedInput.lastInputMS or 0)
@/lua/ge/extensions/core/camera.lua
local function rotatedCamera()
  lastRotatedTime = Engine.Platform.getSystemTimeMS()
end
local function timeSinceLastRotation()
  return Engine.Platform.getSystemTimeMS() - lastRotatedTime
end
@/lua/ge/extensions/util/compileImposters.lua
local function sleep(job, seconds)
  local startTime = Engine.Platform.getSystemTimeMS()
  while Engine.Platform.getSystemTimeMS() - startTime < (seconds * 1000) do
  local startTime = Engine.Platform.getSystemTimeMS()
  while Engine.Platform.getSystemTimeMS() - startTime < (seconds * 1000) do
    job.yield()
@/lua/ge/extensions/core/remoteController.lua

  local currentTime = Engine.Platform.getSystemTimeMS()
@/lua/ge/extensions/core/quickAccess.lua
    title = item.title,
    timestamp = Engine.Platform.getSystemTimeMS(),
    icon = item.icon
            --local item = categoryActions[oldestIndex]
            --log('I', 'quickaccess', 'Removed oldest non-pinned action in category ' .. category ..": " .. string.format("%s %s (%d) (%s)", item.level, item.uniqueID, item.timestamp - Engine.Platform.getSystemTimeMS(), actionInfo and actionInfo.title or "MISSING"))
            -- replace the oldest action with the new one
      local actionInfo = getActionInfo(item.level, item.uniqueID)
      dump(string.format("recent[%d] = %s %s (%d) (%s)", i, item.level, item.uniqueID, item.timestamp - Engine.Platform.getSystemTimeMS(), actionInfo and actionInfo.title or "MISSING"))
    end
local function moved()
  lastTimeMoved = Engine.Platform.getSystemTimeMS()
end