代码搜索:timer
找到约 10,000 项符合「timer」的源代码
代码结果 10,000
www.eeworm.com/read/423958/10513525
pwi timer.pwi
www.eeworm.com/read/423958/10513529
opt timer.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.s*; *.src; *.a*)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt; *.h; *.inc)
pExt (*.plm)
CppX (*.cpp)
DaveTm {
www.eeworm.com/read/423958/10513533
asm timer.asm
ORG 00H
TICK EQU 10000 ;10000×100us=1s
T100us EQU 256-100 ;100us时间常数(12M)
C100us EQU 30H ;100us计数单元
LEDBUF EQU 40H
LED BIT P1.0
LJMP START ;跳至主程序
ORG 000BH
www.eeworm.com/read/423958/10513554
hex timer.hex
:03000000020026D5
:10000B00C0D0E531700215301531E530453170083F
:10001B00753027753110B240D0D032758902758C8E
:10002B009C758A9C75A882D28CC240C29075302771
:0A003B00753110A240929002003EC1
:00000001FF
www.eeworm.com/read/423958/10513679
timer application (1)
www.eeworm.com/read/423958/10513799
timer application (2)
www.eeworm.com/read/278715/10514511
timer7˵
1:使用QueryPerformanceFrequency()和QueryPerformanceCounter()函数来实现ms级或微秒级延时:
ms级级延时
void CMulti_TimerDlg::OnButtonTime7()
{
LARGE_INTEGER litmp;
LONGLONG QPart1,QPart2;;
double
www.eeworm.com/read/278715/10514526
timer1˵
1:在头文件*.h中定义一个非零的定时器句柄:
int timer1;
2:在*.cpp文件的构造函数中初始化句柄:
timer1=1;
3:首先调用函数SetTimer()设置定时间隔
void CMulti_TimerDlg::OnButtonTime1()
{
int iInstallReFlag;
iInstallReFlag=SetTimer(timer
www.eeworm.com/read/278715/10514539
timer3˵
1:利用COleDateTime类和COleDateTimeSpan类来实现秒级延时:
在程序需要延时的地方添加如下代码即可:
void CMulti_TimerDlg::OnButtonTime3()
{
COleDateTime start_time = COleDateTime::GetCurrentTime();
COleDateTimeSpa