Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Questions about time


  • Please log in to reply
3 replies to this topic

#1 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 22 October 2010 - 04:27 PM

I've read these two threads: http://forums.netdui...rch__1#entry514 http://forums.netdui...rch__1#entry650 My basic question is: what does the netduino know about time, and how can I access it? I (think I) know there's no RTC (real time clock), but there is a RTT (real time timer) which is fine, but what ways to get access to accurate time? Can events be raised by timers? Most of the samples I've seen deal with timing through thread.sleep.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 October 2010 - 05:07 PM

Hi Bill, Check out System.Threading.Timer. There used to be a Microsoft.SPOT.ExtendedTimer as well. Not sure if it still exists (or is needed) in .NET MF 4.1. Chris

#3 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 22 October 2010 - 05:11 PM

Cool. Is your stopwatch sample still applicable? It uses Microsoft.SPOT.Hardware.Utility.GetMachineTime().

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 October 2010 - 05:12 PM

Cool. Is your stopwatch sample still applicable? It uses Microsoft.SPOT.Hardware.Utility.GetMachineTime().


Yes. Here you go...

http://forums.netdui...topwatch-class/

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.