Created
September 8, 2010 15:26
-
-
Save dtinth/570289 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var factor = 0.25; | |
var _Date = Date; | |
var _setTimeout = setTimeout; | |
var _setInterval = setInterval; | |
var start = new _Date().getTime(); | |
Date = function(a,b,c,d,e,f,g) { | |
if (arguments.length == 0) { | |
return new _Date(start + (new _Date().getTime() - start) * factor); | |
} | |
return _Date(a,b,c,d,e,f,g); | |
}; | |
setTimeout = function(x, y) { | |
return _setTimeout.call(window, x, y / factor); | |
}; | |
setInterval = function(x, y) { | |
return _setInterval.call(window, x, y / factor); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment