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.
Lösung MyTimer
class MyTimer : public Timer{ // inheritance public: MyTimer() : Timer(){ stop(); reset(); } void Start() { start(); } void Stop() { stop(); } void Reset() { reset(); } int CheckTimerMS() { return read_ms(); } int CheckTimerS() { return read(); } }; int main() { MyTimer tm; while(1) { tm.Start(); wait(1); tm.Stop(); printf("\r\nTimer stopped: %d ", tm.CheckTimerMS()); tm.Reset(); }