Posted 10 December 2012 - 06:44 AM
Hallo, i search for a way to get a more or less real timestamp. like time() in lua or timestamp() in php, its okay aswell, if you get the time sinze the cration of the world or something.
os.time() and os.clock() dont work, because they are not from a specific "start" time, so you cant calculate the time in between if for example the MC Server restarts!
Sure, i can run a loop wich increases a intiger every second or something like that, but that eats up Server CPU power!
thx for the help
greets Syli
edit http dont work for me because disabled!
os.time() and os.clock() dont work, because they are not from a specific "start" time, so you cant calculate the time in between if for example the MC Server restarts!
Sure, i can run a loop wich increases a intiger every second or something like that, but that eats up Server CPU power!
thx for the help
greets Syli
edit http dont work for me because disabled!