DateTime.Now.Millisecond always return 0 on compact framework

Posted by Sachin on Stack Overflow See other posts from Stack Overflow or by Sachin
Published on 2010-05-03T06:16:20Z Indexed on 2010/05/03 6:28 UTC
Read the original article Hit count: 411

I need some way to find the elapsed time or time taken in milliseconds for a function to execute in compact framework. For the same I tried DateTime.Now.Millisecond. But DateTime.Now.Millisecond always return 0.

Also I tried with Now.Tick. But it also returns the value in multiplication of 1,00,00,000 which means it always returns seconds part ignoring the milliseconds.

My question is how to determine the time elapsed in millisecond on compact framework.

© Stack Overflow or respective owner

Related posts about compact-framework

Related posts about datetime