From 5187681ca0f06cd71533ab5557c0830ff2310a5f Mon Sep 17 00:00:00 2001 From: msekar Date: Wed, 20 Jan 2016 23:19:19 +0100 Subject: [PATCH] Calculate elapsed time --- timer.ino | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) create mode 100644 timer.ino diff --git a/timer.ino b/timer.ino new file mode 100644 index 0000000..52c277b --- /dev/null +++ b/timer.ino @@ -0,0 +1,11 @@ +void elapsed(){ //not used for now + unsigned long over; + m = int(elapsedTime / 60000); + over = elapsedTime % 60000; + s = int(over / 1000); + ms = over % 1000; +} + +int elapsedt(int startedTime){ + return millis() - startedTime; +} \ No newline at end of file -- libgit2 0.21.2