mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add skynet.time()
This commit is contained in:
@@ -247,6 +247,10 @@ function skynet.starttime()
|
||||
return tonumber(c.command("STARTTIME"))
|
||||
end
|
||||
|
||||
function skynet.time()
|
||||
return skynet.starttime() + skynet.now()/100
|
||||
end
|
||||
|
||||
function skynet.exit()
|
||||
skynet.send(".launcher","lua","REMOVE",skynet.self())
|
||||
c.command("EXIT")
|
||||
|
||||
Reference in New Issue
Block a user