using System.Diagnostics;
namespace RoboidControl {
///
/// Time manager is een tool mainly to get the current running time in milliseconds
///
public static class TimeManager {
private static readonly Stopwatch _stopwatch = new Stopwatch();
///
/// Static constructor to start the stopwatch
///
static TimeManager() {
_stopwatch.Start();
}
///
/// Method to get the current time in milliseconds
///
/// The current time in milliseconds
public static ulong GetCurrentTimeMilliseconds() {
return (ulong)_stopwatch.ElapsedMilliseconds;
}
}
}