获取当前毫秒级时间戳 (sys.mtime)

声明

时间戳 = sys.mtime()

参数及返回值

  • 时间戳
    • 整数型, 返回毫秒级 UNIX 时间戳

示例

local ms = sys.mtime()
screen.keep()
print('一次 screen.keep 耗时:'..sys.mtime()-ms..'毫秒')

:上述代码中使用了非本章函数 screen.keep

powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""