查找C程序的执行时间(以微秒为单位) [英] Finding execution time for c program in microseconds

查看:96
本文介绍了查找C程序的执行时间(以微秒为单位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须计算c程序的执行时间,其运行时间以微秒为单位,但是clock(),time()之类的函数只有几秒钟的分辨率,我如何才能以微秒为单位查找执行时间...

请帮帮我...

I have to calculate execution time for my c program, its running time is in microseconds but functions like clock(),time() have resolution of only seconds how can i find execution time in microseconds...

please help me out...

推荐答案

看看这个 ^ ]讨论同一件事.
Have a look at this thread [^]discussing the same thing.


这篇关于查找C程序的执行时间(以微秒为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆