找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2796|回复: 1

[通用编程] C标准库里有没有计时函数?

[复制链接]
发表于 2007-8-19 20:26:26 | 显示全部楼层 |阅读模式
类似于GetTickCount的,精度毫秒级以上。
 楼主| 发表于 2007-8-19 20:34:18 | 显示全部楼层
找到了……
clock

Libraries

All versions of the C run-time libraries.

Calculates the wall-clock time used by the calling process.

clock_t clock( void );

Return Value
The elapsed wall-clock time since the start of the process (elapsed time in seconds times CLOCKS_PER_SEC). If the amount of elapsed time is unavailable, the function returns –1, cast as a clock_t.

各位请WS掉吧。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|幻想森林

GMT+8, 2026-11-6 18:28 , Processed in 0.011217 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表