【C/Python】如何以ms级别记录函数的运行时间
C
clock_t start, end;
start = clock();
end = clock();
printf("time=%f\n",(double)(end - start) / CLOCKS_PER_SEC *1000);
Python
start = time.time()
end = time.time()
Time = float(end - start)*1000.0
print('Total time:',Time,"ms")