Skip to content

Commit ef5f8e6

Browse files
committed
remove timestamps
1 parent b384584 commit ef5f8e6

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

‎browser.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ function formatArgs() {
7070
+ this.namespace
7171
+ (useColors ? ' %c' : ' ')
7272
+ args[0]
73-
+ (useColors ? '%c ' : ' ')
74-
+ '+' + exports.humanize(this.diff);
73+
+ (useColors ? '%c ' : ' ');
7574

7675
if (!useColors) return args;
7776

‎debug.js‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exports.coerce = coerce;
1111
exports.disable = disable;
1212
exports.enable = enable;
1313
exports.enabled = enabled;
14-
exports.humanize = require('ms');
1514

1615
/**
1716
* The currently active debug mode names, and names to skip.
@@ -34,12 +33,6 @@ exports.formatters = {};
3433

3534
var prevColor = 0;
3635

37-
/**
38-
* Previous log timestamp.
39-
*/
40-
41-
var prevTime;
42-
4336
/**
4437
* Select a color.
4538
*
@@ -71,14 +64,6 @@ function debug(namespace) {
7164

7265
var self = enabled;
7366

74-
// set `diff` timestamp
75-
var curr = +new Date();
76-
var ms = curr - (prevTime || curr);
77-
self.diff = ms;
78-
self.prev = prevTime;
79-
self.curr = curr;
80-
prevTime = curr;
81-
8267
// add the `color` if not set
8368
if (null == self.useColors) self.useColors = exports.useColors();
8469
if (null == self.color && self.useColors) self.color = selectColor();

‎package.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)"
1717
],
1818
"license": "MIT",
19-
"dependencies": {
20-
"ms": "0.7.1"
21-
},
2219
"devDependencies": {
2320
"browserify": "9.0.3",
2421
"mocha": "*"

0 commit comments

Comments
 (0)