private void RunTimeUpdater()
{
const int SLEEP_TIME = 50;
long time = 0;
while (true)
{
DateTime currentTime = DateTime.UtcNow;
TimeSpan epochTimeSpan = currentTime - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
time = (long)epochTimeSpan.TotalMilliseconds;
_model.RecieveNewTime(time);
Thread.Sleep(SLEEP_TIME);
}
}
private void RunTimeUpdater()
{
const int SLEEP_TIME = 50;
long time = 0;
while (true)
{
DateTime currentTime = DateTime.UtcNow;
TimeSpan epochTimeSpan = currentTime - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
time = (long)epochTimeSpan.TotalMilliseconds;
_model.RecieveNewTime(time);
Thread.Sleep(SLEEP_TIME);
}
}