4 ms·
Just a class (or struct or module or whatever your language has for that) that has a “now()” method which returns the current time. And then replace all your c
by skrebbel 3y ago
Just a class (or struct or module or whatever your language has for that) that has a “now()” method which returns the current time.
And then replace all your calls that do Date.now() with clock.now() and then you can make “now” be whatever you want.