幻想森林

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

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

[复制链接]

23

主题

218

帖子

2470

积分

⑥精研

积分
2470
发表于 2007-8-19 20:26:26 | 显示全部楼层 |阅读模式
类似于GetTickCount的,精度毫秒级以上。
ONScripter for PSP/Windows中文版 http://blog.163.com/john_he_
回复

使用道具 举报

23

主题

218

帖子

2470

积分

⑥精研

积分
2470
 楼主| 发表于 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掉吧。
ONScripter for PSP/Windows中文版 http://blog.163.com/john_he_
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-4-30 04:29 , Processed in 0.028395 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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