DateTime.Now - seems to get stuck in emulator (VS2003)

I was trying to have my program call some methods at specific times of the day when I came across this - DateTime.Now seems to get "stuck" in the emulator. I can't duplicate this on the device or on the desktop. After 60 seconds, the minute doesn't always increment, or sometimes it skips a few seconds. Has anyone ever seen this?

Here's the code snippet that seems to demonstrate the problem. If it's my fault, please let me know. I couldn't find anyway to "reset" the DateTime.Now to make sure it's rereading the system time.

private DateTime thisTime;
private int lastSecond;
private int lastMinute;
private int lastHour;
private bool runMode = true;

public Scheduler()
{

DateTime startTime = DateTime.Now;
lastSecond = startTime.Second;
lastMinute = startTime.Minute;
lastHour = startTime.Hour;

EndlessLoop();

}

public void EndlessLoop()
{

while (runMode)
{
Thread.Sleep(500);
thisTime = DateTime.Now;

if (thisTime.Second != lastSecond)
{

Console.Write("{0} ",textForConsole); //one second tick behind
textForConsole = thisTime.Second.ToString();
lastSecond = thisTime.Second;
}
if (thisTime.Minute != lastMinute)
{
textForConsole = textForConsole + "\r\nMinute: " + thisTime.Minute.ToString() + "\r\n";
lastMinute = thisTime.Minute;
}
if (thisTime.Hour != lastHour)
{
textForConsole = textForConsole + "\r\nHour: " + thisTime.Hour.ToString() + "\r\n";
lastHour = thisTime.Hour;
}

}

}

[4588 byte] By [graymon] at [2008-1-4]
# 1

Yes, there were some issues with time flow on the old emulator. If that's critical you might try using new emulator which is available as a separate download.

IlyaTumanov at 2007-9-26 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Thanks Ilya,

It's not that critical. I just thought I was doing something wrong.

graymon at 2007-9-26 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...