Better timing

Dependencies:   FP MQTTPacket

Fork of MQTT by MQTT

Revision:
52:3f9919941b86
Parent:
50:c37c8236e84a
Parent:
51:5042d7e56f7e
diff -r c37c8236e84a -r 3f9919941b86 MQTTmbed.h
--- a/MQTTmbed.h	Mon Sep 11 16:43:10 2017 +0200
+++ b/MQTTmbed.h	Mon Sep 25 11:12:23 2017 +0000
@@ -6,14 +6,13 @@
 class Countdown
 {
 public:
-    Countdown()
+    Countdown() : t()
     {
-        t = Timer();   
+  
     }
     
-    Countdown(int ms)
+    Countdown(int ms) : t()
     {
-        t = Timer();
         countdown_ms(ms);   
     }