millisec.h

来自「C++课程大学作业的一次任务」· C头文件 代码 · 共 29 行

H
29
字号
// capture interrupts and change time resolution
// Usage: put these three statements in your c plus plus source file
//#include "millisec.h"
//unsigned breakflag;
//long clockticks;
//
// declare an arbitrary object of class millisec in main:
//millisec x;
//
// link your C Plus Plus program with millisec.obj
// or compile it with millisec.cpp
// be sure to use the same memory model for each.
// breakflag and clockticks are initialized to zero.
//breakflag and clockticks may be reset to zero at any time.
//breakflag increments when ctrl-c or ctrl-break is detected.
//clockticks increments by one millisecond intervals.

#ifndef MILLISEC
 #define MILLISEC
class millisec {
void interrupt (far *oldint27) (...);
void interrupt (far *oldint35) (...);
public:
millisec ();
~millisec ();
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?