now.js 190 B

1234567891011
  1. define(function () {
  2. // A (possibly faster) way to get the current timestamp as an integer.
  3. var now = Date.now || function() {
  4. return new Date().getTime();
  5. };
  6. return now;
  7. });