Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 2 months ago.
make a stop clock
Have some one a code witch can stop the time? (For example the time betwen start and finish) Is it possible to show a interim?
Thanks for help
2 Answers
12 years, 2 months ago.
Timer? http://mbed.org/handbook/Timer
The timer gives the 'exact' result back, how much you show depends on your print function, have a look at: http://www.cplusplus.com/reference/cstdio/printf/. Should be %.2f instead of %f.
posted by 15 Dec 201212 years, 2 months ago.
Thanks and how can i make alarm clock? That at 6:00PM for example a led set to 1 if this is impossible is it possible to count down with a timer?
The timer is mainly intended for relative short periods. For this, you are better off using the RTC: http://mbed.org/projects/libraries/api/mbed/trunk/rtc_time. And I just happen to have a library published which adds some interrupts to RTC, for for example alarms: http://mbed.org/users/Sissors/code/RTC/
posted by 13 Dec 2012