pooja arawal
/
mbed_timer
hhh
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 |
diff -r 5d419a46e629 -r 4346149b11d2 Timer.h --- 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:
diff -r 5d419a46e629 -r 4346149b11d2 poo.cpp --- /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