Timer class for keeping a consistent logical frame-rate