One thought on “Getting a millisecond resolution time in CE”

  1. A couple of things … (1) thank you! This code helped a lot! (2) the link is broken (3) the code has one tiny hole: if the DateTime.Now.Seconds ticks up between the time you check Environment.TickCount and the time you check DateTime.Now, you can get a value that is a whole second off! Consider putting a loop in your DateTime.Now.get that checks Environment.TickCount again, after getting DateTime.Now, and goes back through if TickCount is now past m_offset.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s