a simple timer class for use in Unity: handles Time.time and Time.fixedTime