Ejemplo n.º 1
0
 static long TicksNow()
 {
     // Spicy Pixel: No access to internal Mono method except by reflection.
     //
     // Monotonic time cannot be set and represents a time in ticks since
     // some unspecified starting point. It avoids drift due to system
     // time updates (which DateTime.Now.Ticks does not).
     //
     // return DateTime.GetTimeMonotonic ();
     // return DateTime.Now.Ticks;
     return(Watch.GetTimeMonotonic());
 }