How do I get monotonic time durations in python?

前端 未结 5 884
感情败类
感情败类 2020-11-27 03:09

I want to log how long something takes in real walltime. Currently I\'m doing this:

startTime = time.time()
someSQLOrSomething()
print \"That took %.3f secon         


        
5条回答
提交回复
热议问题