diff chronometer.js @ 53:a0ae699ac444

chronometer no long increments but now compares start time with current time
author root <root@beaglebone.(none)>
date Sun, 14 Oct 2012 00:26:42 +0000
parents ddb09f0a67fd
children 66bf613fb818
line wrap: on
line diff
--- a/chronometer.js	Sun Oct 14 00:25:26 2012 +0000
+++ b/chronometer.js	Sun Oct 14 00:26:42 2012 +0000
@@ -31,11 +31,11 @@
     chron = pad(hours) +":"+pad(mins)+ ':'+ pad(seconds)+ ":"+ zecsec
     chronsec = pad(hours) +":"+pad(mins)+ ':'+ pad(seconds)
     if ( divisor !== 1000 ){
-	return chronsec
+	return chron
     }
-    else {    return chron }
+    else {    return chronsec }
 };
 
 exports.chronometer =chronometer;
 exports.xdateTime = xdateTime;
-exports.zeroChron = zeroChron;
\ No newline at end of file
+exports.zeroChron = zeroChron;