문제

I'm a Java developer and recently started on a Netduino hobby project. I have encountered a strange problem. My compiler tells me that there is no such thing as TimeSpan.TotalMilliseconds.

Is it true, that TotalMilliseconds is something only the desktop version of .NET contains?

도움이 되었습니까?

해결책 2

It doesn't exist in the .NET Micro Framework. Use this instead:

double totalMilliseconds = theTimeSpan.Ticks / 10000.0;

다른 팁

It is true. The TotalMilliseconds() property does not exist in the .NET Micro Framework. See MSDN reference for Timespan in Desktop Framework vs. MSDN reference for Timespan in Micro Framework.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top