UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

19 lines (14 loc) 362 B
define(function () { /** * 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()); }; return now; });