Main Site Documentation

FEZ Panda II - RTC Resolution - Time Stamping


#1

What is the resolution of the RTC for the FEZ Panda II? Can it be used for time stamping events?


#2

Welcome to the club!

What kind of the resolution are you looking for?


#3

millisecond if possible.


#4

Generally you do not use the RTC for timestamping. The RTC is a hardware feature, and used for saving time across reset and power loss.

After the system is booted, you load the system clock from the RTC. From then on, you use the system clock.

The Ticks property of the DateTime.Now property contains the system time in 100 nanosecond increments. Is that fine enough granularity?

http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/Index.html

http://wiki.tinyclr.com/index.php?title=RealTimeClock


#5

If you are looking for ms of resolution then I would say yes: RTC allows to time stamp events at this resolution and you will be able to say if event A occurs before event B even if B occurs 1ms only after A.
But if you want to log with 1ms of accuracy I would say that this will be very difficult due to the fact that CLR is not a realtime OS. Am I wrong?


#6

Thanks for the quick responses.


#7

BTW, generally responses on the forum are within seconds or minutes, not milliseconds.