Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Resets the TickClock
 /// </summary>
 public void Reset()
 {
     startTimeStamp = TickHelper.GetCurrentTimestamp();
 }