77: Return the time since avatar.js started in process.uptime

Reviewed-by: asquare
This commit is contained in:
Kinsley Wong 2013-11-15 08:45:24 -08:00
parent 78343aa603
commit df86178a4a

View File

@ -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;
}
});