本文介绍了c ++上的精确时间测量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在进行一个项目,我必须比较一些排序算法的执行时间。但是,正如你所知,有些值是关闭的,但我看不出差异。我必须知道,差别很小,例如1纳秒或者其他东西。
可以测量非常小的差异 - 小于微秒或其他东西。
I am on a project and i have to compare some sorting algorithms execution times. However, as you know some values are to close, but i can not see difference. I have to know, small difference for example 1 nanosecond or something.
Is that possible to measure very small difference-smaller then microsecond or something.
推荐答案
这篇关于c ++上的精确时间测量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!