100-093

时间函数举例3。
 1 #! /usr/bin/env python
 2 # -*- coding:utf-8 -*-
 3 '''
 4 时间函数举例3。
 5 '''
 6 if __name__ == '__main__':
 7     import time
 8     start = time.process_time() # time.perf_counter
 9     for i in range(10000):
10         print (i)
11     end = time.process_time()
12     print ('different is %6.3f' % (end - start))

 

posted @ 2018-06-26 20:46  睡到自然醒的猪  阅读(70)  评论(0)    收藏  举报

iaoexl at outlook dot com, 返回顶部 →友情链接: 信息港 同城信息