⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 millisec.h

📁 C++课程大学作业的一次任务
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -