C++Builder中高精度定时器管理类设计及其应用  被引量:1

Design and Application of High Resolution Timer Managing Class in C++Builder IDE

在线阅读下载全文

作  者:李晓京[1] 张利利[1] 胡文东[1] 文治洪[1] 马进[1] 

机构地区:[1]第四军医大学 航空航天医学教育部重点实验室,西安710032

出  处:《计算机系统应用》2013年第8期145-150,201,共7页Computer Systems & Applications

基  金:国家自然科学基金青年项目(81202178/H2602);全军医药卫生重大项目(AWS12J003)

摘  要:介绍一种在BCB开发环境基于多线程的高精度定时器类的设计实现.由VCL组件库中的TThread派生类结合Windows消息机制设计了实测误差<0.5ms的定时器类,该类具有单实例-多定时器管理、线程工作状态可控、回调方式可控等优点,宜用性及可定制性均优于普遍采用的系统定时器及多媒体定时器,可在工业控制、多媒体应用设计、实时信号采集与处理等领域得到应用.This paper present a realization of hi-resolution timer class, based on multithread technique, in the BCB IDE. Utilizing of the class, derived from TThread class of VCL and integrated with Windows message mechanism, achieved a general timing-error 〈 0.5ms. The class is provided of advantages such as multiple timers-single object managing, work state of timer-thread adjusting, callback mode controlling, as well as more convenient and more customizable than traditional windows System Timer and Multimedia Timer. Thus it could be applied in projects with relatively time-critical requirement, e.g. industrial control, multimedia app development and realtime signal sampling & processing.

关 键 词:C++ BUILDER IDE Windows 定时器 多线程 线程优先级 WINDOWS消息机制 定时精度 实时性 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象