mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixed profile
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
XRegExp = require('xregexp').XRegExp;
|
XRegExp = require('xregexp').XRegExp;
|
||||||
|
|
||||||
process.profile = function(operation, start) {
|
process.profile = function(operation, start) {
|
||||||
console.log('%s took %d milliseconds', process.elapsedTimeSince(start));
|
console.log('%s took %d milliseconds', operation, process.elapsedTimeSince(start));
|
||||||
};
|
};
|
||||||
|
|
||||||
process.elapsedTimeSince = function(start) {
|
process.elapsedTimeSince = function(start) {
|
||||||
|
|||||||
Reference in New Issue
Block a user