Document details

Library for Simplified Timer Implementation using Standard C++

Author(s): Lopes, Sérgio F. ; Vicente, Paulo Sérgio Cunha ; Gomes, Ricardo Vieites Salgado Alves

Date: 2015

Persistent ID: http://hdl.handle.net/1822/53387

Origin: RepositóriUM - Universidade do Minho

Project/scholarship: info:eu-repo/grantAgreement/FCT/5876/147280/PT;

Subject(s): Temporization; Timers; C++11; Computer-based Control; Event-driven programming; Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informática


Description

Temporization is a crucial aspects of control, automation and robotics systems. C++ is used in the development of such systems, especially if they are more complex and powerful. Because, the language and standard library do not support non-blocking timers with callbacks for event-driven programming, developers resort to libraries and frameworks that offer such functionality. However, their timer implementations are dependent on platform specificities and thus have more limited portability. C++11 has introduced features that enable standard implementations of timers. We propose a library that implements timers with simplified usage relatively to well-known libraries. The proposed library is contrasted with timers of two well know libraries, through a series of usage scenarios. We describe the design and provide performance measurements. The results show that it is faster and offers more accurate temporization.

(undefined)

info:eu-repo/semantics/publishedVersion

Document Type Conference paper
Language English
Contributor(s) Universidade do Minho
CC Licence
facebook logo  linkedin logo  twitter logo 
mendeley logo

Related documents

No related documents