Home

Awesome

Clock

A completly accurate timer with performance tracking for multiplayer game servers

How to use:
Add the script to your project and create a clock:

Clock clock = new Clock(40, true, 10000)

This creates a clock with a tickrate of 40 ticks per second. (and a delta time of 25ms).
It will write a log to the console every 10000 ticks.(in this case every 250 seconds) The log contains 3 values:

Subscribe to the clock:

clock.Tick += YourFunction
// YourFunction can be any Void function.