aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2013-05-13 11:03:04 -0500
committerBen Beltran <ben@freshout.us>2013-05-13 11:03:04 -0500
commite16e2dbf4c0911a5d5e8d1d56bb1c674b37fc161 (patch)
treeb44329074cc150ba47aae9fe9a9affe3d50d1948 /lib
parent500fa8a4162f29e07e1ca4077044681c4992209b (diff)
Changes the instance now() to use constructor.
Diffstat (limited to 'lib')
-rw-r--r--lib/cobalt.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/cobalt.js b/lib/cobalt.js
index 981aab2..58a305c 100644
--- a/lib/cobalt.js
+++ b/lib/cobalt.js
@@ -239,15 +239,7 @@
// Returns the current time in microseconds.
now : function () {
- if (typeof performance !== 'undefined') {
- return performance.timing.navigationStart + performance.now();
- }
-
- if (typeof Microtime !== 'undefined') {
- return Microtime.nowDouble() * 1000;
- }
-
- return Date.now();
+ this.constructor.now();
},
_levelString : function (level) {