From 9f18f42b56e9e7b1837d785ff1343c4b6eb2f843 Mon Sep 17 00:00:00 2001 From: Outer2g Date: Mon, 31 Jul 2017 20:48:16 +0200 Subject: [PATCH] Now the timer.stop method will return the duration time --- lib/lynx.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/lynx.js b/lib/lynx.js index c9fbbb9..f7f72cb 100644 --- a/lib/lynx.js +++ b/lib/lynx.js @@ -194,6 +194,8 @@ Lynx.prototype.createTimer = function createTimer(stat, sample_rate) { // So no one stops a timer twice (causing two emits) // stopped = true; + + return duration; } //