/// <summary> /// Register an application tick /// </summary> /// <returns>The amount of time the application took to register a tick</returns> public double Tick() { long currentTimestamp = TickHelper.GetCurrentTimestamp(); return((currentTimestamp - startTimeStamp) / TicksPerMillisecond); }
/// <summary> /// Resets the TickClock /// </summary> public void Reset() { startTimeStamp = TickHelper.GetCurrentTimestamp(); }