clock.h
来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 33 行
H
33 行
/* +++Date last modified: 05-Jul-1997 */
/* =======================================================================
CLOCK.H A simple macro based implementation of the ANSI/ISO
standard clock() function and related items.
Some older C compilers for DOS do not implement these
items. E.g.: Turbo C 1.5 ... This file fixes it.
WARNING: There is no provision for handling the
24-hour/midnight rollover problem.
Suggested use: #include this file _after_ time.h if
there are problems related to clock().
v1.00 95-10-19 Initial version.
_____ This version is Public Domain.
/_|__| Auke Reitsma, Delft, The Netherlands.
/ | \ --------------------------------------------------------------- */
#ifndef CLOCKS_PER_SEC
#include "extkword.h" /* from Snippets, for definition of FAR */
typedef long clock_t;
#define clock() *((clock_t FAR *)0x0040006cL)
#define CLOCKS_PER_SEC 18.2
#define CLK_TCK 18.2 /* Non-ANSI/ISO but _very_ common. */
#endif
/* === clock.h end ===================================================== */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?