C++ Builder中高精度定时器管理类设计及其应用
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

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


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

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    介绍一种在BCB开发环境基于多线程的高精度定时器类的设计实现. 由VCL组件库中的TThread派生类结合Windows消息机制设计了实测误差<0.5ms的定时器类, 该类具有单实例-多定时器管理、线程工作状态可控、回调方式可控等优点, 宜用性及可定制性均优于普遍采用的系统定时器及多媒体定时器, 可在工业控制、多媒体应用设计、实时信号采集与处理等领域得到应用.

    Abstract:

    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中高精度定时器管理类设计及其应用.计算机系统应用,2013,22(8):145-150,201

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2013-01-18
  • 最后修改日期:2013-03-08
  • 录用日期:
  • 在线发布日期: 2013-09-06
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号