Sha256: 6650ba4424b2759473fcff792322f92192afee442ecee6a956603f63d6c89af7
Contents?: true
Size: 349 Bytes
Versions: 69
Compression:
Stored size: 349 Bytes
Contents
/** * 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;
Version data entries
69 entries across 69 versions & 2 rubygems