05.06.2017, 13:31
Timers are inaccurate. Why not just use OnPlayerConnect/OnPlayerDisconnect? Save the timestamp with it so you have more data points. Then when you go to compose your graph, for each data point: round down to the nearest hour if minutes are smaller than 30 and round up to to the nearest hour if minutes are equal to or greater than 30. Then make averages.