Code coverage report for time/now.js

Statements: 80% (4 / 5)      Branches: 50% (1 / 2)      Functions: 66.67% (2 / 3)      Lines: 75% (3 / 4)     

All files » time/ » now.js
1 2 3 4 5 6 7 8 9 10 11 12 131         1       1      
define(function () {
 
    /**
     * Get current time in miliseconds
     */
    var now = (typeof Date.now === 'function')? Date.now : function(){
        return +(new Date());
    };
 
    return now;
 
});