VE Lua Documentation

Press F to search!

gettime

Definition


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

Callers

@/lua/common/libs/copas/copas/lock.lua

    start_time = gettime()
    copas.sleep(-1)
      self.errors[co] = nil
      return nil, err, gettime() - start_time
    end
  self.call_count = 1
  return start_time and (gettime() - start_time) or 0
end
@/lua/ge/extensions/editor/gen/world.lua
	lo('>>^^^^^^^^^^^^^^^^ toJSON:'..#asave)
	table.insert(asave, 1, {math.floor(socket.gettime()), deepcopy(desc)})
	if #asave > default.maxundo then
			end
			table.insert(asave, 1, {math.floor(socket.gettime()), deepcopy(desc)})
]]
--[[
		table.insert(asave, 1, {math.floor(socket.gettime()), deepcopy(desc)})
--        asave[#asave+1] = math.floor(socket.gettime())
		table.insert(asave, 1, {math.floor(socket.gettime()), deepcopy(desc)})
--        asave[#asave+1] = math.floor(socket.gettime())
			lo('?? for_JSON:'..#asave..':'..fsave) --..tostring(adesc[cedit.mesh]))
@/lua/ge/extensions/editor/sceneTree.lua
        if tableSize(editor.selection.object) == 1 and not nodeWasDblClicked then
          node.renameRequestTime = socket.gettime()
        end
        if tableSize(editor.selection.object) == 1 and not nodeWasDblClicked then
          node.renameRequestTime = socket.gettime()
        end
        if tableSize(editor.selection.object) == 1 and not nodeWasDblClicked then
          node.renameRequestTime = socket.gettime()
        end
          and not imgui.IsMouseDown(0)
          and (socket.gettime() - node.renameRequestTime) > imgui.GetIO().MouseDoubleClickTime
          and node.name ~= "MissionGroup" then
@/lua/ge/extensions/editor/gen/network.lua
    if inanim and inanim.N and inanim.n < inanim.N+1 then
        local ctime = math.floor(socket.gettime()*1000)
        if not stime then
        if ctime - stime > 300 then
            lo('?? ani_STEP:'..inanim.n..':'..ctime) --..tostring(math.floor(socket.gettime()*1000)))
    --        inanim = {ain = ani, cb = roadAni}
@/lua/common/testFramework/TestManager.lua
    -- Run all test methods in the tests table
    local startTime = socket.gettime()
    for _, name in ipairs(testNames) do
      self.currentCtx = textFuncContext
      local testStartTime = socket.gettime()
      local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
      local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
      local testEndTime = socket.gettime()
      local duration = testEndTime - testStartTime
    end
    local endTime = socket.gettime()
    local totalDuration = endTime - startTime
@/lua/common/libs/xlsxlib/tests/TestManager.lua
    -- Run all test methods in the tests table
    local startTime = socket.gettime()
    for _, name in ipairs(testNames) do

      local testStartTime = socket.gettime()
      local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
      local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
      local testEndTime = socket.gettime()
      local duration = testEndTime - testStartTime
    end
    local endTime = socket.gettime()
    local totalDuration = endTime - startTime
@/lua/ge/ge_utils.lua
  -- "Z" indicates that this time is in Coordinated Universal Time (UTC).
  local t = socket.gettime()
  return os.date("!%Y-%m-%dT%H:%M:%S", t) .. string.format(".%03dZ", (t * 1000) % 1000)
@/lua/common/libs/binaryheap/binaryheap.lua
-- while true do
--   sleep(heap:peekValue() - gettime())  -- assume LuaSocket gettime function
--   coroutine.resume((heap:pop()))       -- assumes payload to be a coroutine,