Reply to thread

I avoid using separate timers in the emulator I am coding for FluxRP.


I have 1 main timer that runs the habbo class and rp class (Thanks to [USER=72299]@Damien[/USER] for recoding parts of this timer)


But I have a long variable set to a Unix Timestamp (Which gets stored in the database when the user disconnects), and then I compare that to the current timestamp in my 1 loop.

This handles ALL of my loops. It gets called every second (On it's own thread because it's on it's own loop so the game doesn't lagg...)


Top