mirror of
https://github.com/wxd-gaming/test-all.git
synced 2026-06-08 15:34:12 +08:00
【测试】lua时间对比
This commit is contained in:
29
lua-test/lua/script/1/test1.lua
Normal file
29
lua-test/lua/script/1/test1.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
--- Generated by EmmyLua(https://github.com/EmmyLua)
|
||||
--- Created by admin.
|
||||
--- DateTime: 2024/8/19 09:49
|
||||
---
|
||||
---
|
||||
function errFunc(error)
|
||||
print("\n==============\nerrFunc - " .. debug.traceback(error) .. "\n==============\n")
|
||||
end
|
||||
|
||||
function t1(str)
|
||||
print(str)
|
||||
local num = 99999999999999999
|
||||
print(num)
|
||||
print(1 << 2)
|
||||
local time = os.time()
|
||||
print(type(time) .. " - " .. tostring(time))
|
||||
--print(type(time) + num .. tostring(time))
|
||||
--print(debug.traceback())
|
||||
--print(str + num)
|
||||
end
|
||||
|
||||
--local success, error = pcall(t1, "d")
|
||||
--if not success then
|
||||
-- errFunc(error)
|
||||
--else
|
||||
-- print("Code executed successfully.")
|
||||
--end
|
||||
|
||||
Reference in New Issue
Block a user