Packages
A web application in pursuit of meaning in life.
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/time/now.js
/**
* Get current time in miliseconds
*/
function now(){
// yes, we defer the work to another function to allow mocking it
// during the tests
return now.get();
}
now.get = (typeof Date.now === 'function')? Date.now : function(){
return +(new Date());
};
module.exports = now;