77: Return the time since avatar.js started in process.uptime
Reviewed-by: asquare
This commit is contained in:
parent
78343aa603
commit
df86178a4a
@ -405,11 +405,11 @@ Object.defineProperty(exports, 'memoryUsage', {
|
||||
}
|
||||
});
|
||||
|
||||
var startTime = java.lang.System.nanoTime();
|
||||
var startTime = LibUV.getUptime();
|
||||
Object.defineProperty(exports, 'uptime', {
|
||||
enumerable: true,
|
||||
value: function() {
|
||||
return LibUV.getUptime();
|
||||
return LibUV.getUptime() - startTime;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user