0cedb18db41c5fecbcfb45f8042b9219cd781152
[platform/framework/web/crosswalk-tizen.git] /
1
2
3     /**
4      * Get current time in miliseconds
5      */
6     function now(){
7         // yes, we defer the work to another function to allow mocking it
8         // during the tests
9         return now.get();
10     }
11
12     now.get = (typeof Date.now === 'function')? Date.now : function(){
13         return +(new Date());
14     };
15
16     module.exports = now;
17
18