摘要
定时器的使用在程序开发工作中使用广泛,然而在动态链接库中却没有直接实现的定时器工具;为了提高开发效率,本文在分析了有关定时器技术的实现及动态库特性的基础上,利用C++语言,结合策略模式的程序设计方法在动态库中实现了高精度可扩展的定时器,并封装成模块提供给其它进程调用。经实际项目验证本方案可行,对有关定时功能的开发能提高50%的开发效率。
The Timer is widely used in program development by RD personnel. However, there was no direct way to implement the Timer in Dynamic link library. In order to improve development efficiency, this paper based on analyzing the relevant technology of Timer implementation and the property of DLL, and used C++ and a programming technique of strategy Pattern to implement High-precision and expansible Timer. Meanwhile,it packaged into a module to provide other processes with calling.This program is feasible testified by the actual project, and it can improve the developing efficiency of 50% on the Timer development.
出处
《电子设计工程》
2016年第13期59-60,共2页
Electronic Design Engineering
基金
福建省教育厅项目(JA14194)