检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]三峡大学电气与新能源学院,湖北宜昌443002
出 处:《计算机应用》2012年第A02期144-146,共3页journal of Computer Applications
摘 要:Visual Basic 6.0自带的Timer(定时器)控件的Interval(时间间隔)属性,可用来设置两次触发Timer事件的时间间隔,实现定时功能。由于系统硬件和该属性固有的限制,定时程序在运行过程中会出现定时误差大和时间间隔有限等不足,其定时误差约为5%。针对这两个问题,介绍了如何利用主动查询对比系统时间的算法,不断修正Timer控件的定时误差,防止误差的累积,从而实现高精度定时和任意整数秒时间间隔定时。经过实验测试,该算法可消除定时器的固有误差,达到无误差定时。The interval property of Visual Basic 6.0 internal timer widget can be used to as a timing function by adjusting the time interval between two triggered timer events. Due to system hardware limitations and the intrinsic weakness of the widget, its performance is severely undermined by issues such as large errors and limited time intervals. The timing precision is about 5%. In order to solve these problems, the authors have developed a method to achieve more precise and arbitrary- integer-second-time-interval timing by utilizing an algorithm that actively checks and compares the system time and constantly corrects the error to prevent the accumulation of it. The experimental results show that this method can eliminate the inherent error and improve the accuracy of timer widget in triggering a certain event within any given time interval.
关 键 词:定时器控件 时间间隔属性 使能属性 定时器事件 定时
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.139.237.30