I have a simple little AFK system that upon activating it, it sets the mob's var to the world's realtime var, and when that AFK person is clicked, it subtracts the value of that var in ticks from the world's current realtime var and this value is converted to hours:minutes:seconds and displayed to the user that clicked them. I noticed that there's a 1-15 second "lag" between clicks, it doesn't seem to "update" for some time; you can click them ten times in succession and get the same value as the first time, then it "jumps" ten or fifteen seconds. Is this avoidable or should I just deal with it?
Use world.time. world.realtime is less accurrate because it's storing a larger number with the same amount of memory. world.time only measures from the start of the server.