add skynet.time()

This commit is contained in:
Cloud Wu
2014-06-25 11:15:28 +08:00
parent b1d6f7fd88
commit 36cab8e060
3 changed files with 27 additions and 11 deletions

View File

@@ -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")