CLOCKS_PER_SEC

定义于头文件 <ctime>
#define CLOCKS_PER_SEC /*implementation defined*/

展开成 std::clock_t 类型表达式,值等于每秒 std::clock() 所返回的时钟计次数(不必是编译时常量)。

注意

POSIX 定义 CLOCKS_PER_SEC 为一百万,无关乎 std::clock() 的实际精度。

参阅

返回自程序启动时起的未处理处理器时钟时间
(函数)
进程运行时间
(typedef)
CLOCKS_PER_SECC 文档

版本历史

  • (当前 | 先前 2017年10月8日 (日) 05:39Fruderica讨论 | 贡献. . (580字节) (-547). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 07:19P12bot讨论 | 贡献 . . (1,127字节) (-41). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:57P12bot讨论 | 贡献 . . (1,168字节) (+281). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 09:49P12讨论 | 贡献 . . (887字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (887字节) (-19). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 13:14P12讨论 | 贡献 . . (906字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (906字节) (+906). . (Translated from the English version using Google Translate)