Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:9efa965d2111, committed 2016-07-11
- Comitter:
- jebradshaw
- Date:
- Mon Jul 11 18:26:47 2016 +0000
- Parent:
- 2:67e16d628edc
- Commit message:
- 20160711;
Changed in this revision
RunTimer.cpp | Show annotated file Show diff for this revision Revisions of this file |
RunTimer.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 67e16d628edc -r 9efa965d2111 RunTimer.cpp --- a/RunTimer.cpp Thu May 19 16:45:31 2016 +0000 +++ b/RunTimer.cpp Mon Jul 11 18:26:47 2016 +0000 @@ -11,6 +11,7 @@ } void RunTimer::timeAcc(void){ + ms_total += 10.0; this->ms +=10; if(this->ms == 1000){ this->ms = 0;
diff -r 67e16d628edc -r 9efa965d2111 RunTimer.h --- a/RunTimer.h Thu May 19 16:45:31 2016 +0000 +++ b/RunTimer.h Mon Jul 11 18:26:47 2016 +0000 @@ -33,6 +33,7 @@ Ticker timer_10ms; //Ticker for adding 10ms + float ms_total; unsigned int ms; unsigned int sec; unsigned int min;