Override time()/sleep() core functions for testing
