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 1:4346149b11d2, committed 2016-12-01
- Comitter:
- 2bv14ei073
- Date:
- Thu Dec 01 06:13:26 2016 +0000
- Parent:
- 0:5d419a46e629
- Commit message:
- timer
Changed in this revision
Timer.h | Show annotated file Show diff for this revision Revisions of this file |
poo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Timer.h Thu Dec 01 06:06:30 2016 +0000 +++ b/Timer.h Thu Dec 01 06:13:26 2016 +0000 @@ -41,6 +41,7 @@ * } * @endcode */ + class Timer { public:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/poo.cpp Thu Dec 01 06:13:26 2016 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" + +Timer t; + +int main() { + t.start(); + printf("Hello World!\n"); + t.stop(); + printf("The time taken was %f seconds\n", t.read()); +} \ No newline at end of file