2010-03-15 146 views

回答

14

您可以簡單地設置了time.time指向新的計時功能,像這樣:

import time 

def my_time(): 
    return 0.0 

old_time = time.time 
time.time = my_time