Overrides the time() and sleep() core functions for testing
