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

📄 unit2.h

📁 并口测试程序
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
//---------------------------------------------------------------------------
class TOutputThread : public TThread
{            
private:
protected:
        void __fastcall Execute();
public:
        __fastcall TOutputThread(bool CreateSuspended);
        void __fastcall GetPulseHigh();
        void __fastcall Output();
};
//---------------------------------------------------------------------------
        void MySleep(DWORD dwMicrosecond)
        {
                LARGE_INTEGER frequence, privious, current, interval;
                QueryPerformanceFrequency(&frequence);
                interval.QuadPart = frequence.QuadPart * dwMicrosecond / 1000000;
                QueryPerformanceCounter( &privious );
                current = privious;
                while( current.QuadPart - privious.QuadPart < interval.QuadPart )
                QueryPerformanceCounter( &current );
        }
#endif

⌨️ 快捷键说明

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