public GameTimer(World.Time offset) { _totalSeconds = offset.seconds; _secondsInTick = 0; _maxSecondsInTick = offset.maxSecondsInTicks; _tick = offset.tick; _watch = new SetableStopwatch(new TimeSpan(0, 0, 0)); _watch.Start(); _previousSecond = (int)_watch.Seconds; Logger.Log("Game Timer Initialized."); }
public GameTimer(World.Time offset) { _totalSeconds = offset.seconds; _secondsInTick = 0; _maxSecondsInTick = offset.maxSecondsInTicks; _tick = offset.tick; _watch = new SetableStopwatch (new TimeSpan(0, 0, 0)); _watch.Start (); _previousSecond = (int)_watch.Seconds; Logger.Log ("Game Timer Initialized."); }