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.
Fork of mbed by
Diff: Timer.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/Timer.h Tue Jan 08 12:46:36 2013 +0000
+++ b/Timer.h Wed Jan 16 12:56:34 2013 +0000
@@ -26,18 +26,18 @@
namespace mbed {
-/** A general purpose timer
+/** A general purpose timer
*
* Example:
* @code
* // Count the time to toggle a LED
*
* #include "mbed.h"
- *
+ *
* Timer timer;
* DigitalOut led(LED1);
* int begin, end;
- *
+ *
* int main() {
* timer.start();
* begin = timer.read_us();
@@ -51,16 +51,16 @@
public:
Timer();
-
+
/** Start the timer
*/
- void start();
+ void start();
/** Stop the timer
*/
- void stop();
+ void stop();
- /** Reset the timer to 0.
+ /** Reset the timer to 0.
*
* If it was already counting, it will continue
*/
@@ -78,7 +78,7 @@
*/
int read_us();
-#ifdef MBED_OPERATORS
+#ifdef MBED_OPERATORS
operator float();
#endif
