📅  最后修改于: 2022-03-11 14:47:08.184000             🧑  作者: Mango
import time
begin = time.process_time_ns()
your_program() # The program you want to test
end = time.process_time_ns()
final_time = end - begin # Final time in nanoseconds