INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
timer.h
1/*
2 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3 * http://gearbox.sf.net/
4 * Copyright (c) 2004-2010 Alex Brooks, Alexei Makarenko, Tobias Kaupp
5 *
6 * This distribution is licensed to you under the terms described in
7 * the LICENSE file included in this distribution.
8 *
9 */
10
11#ifndef GBXICEUTILACFR_TIMER_H
12#define GBXICEUTILACFR_TIMER_H
13
14#include <IceUtil/Time.h>
15
16namespace gbxiceutilacfr {
17
31class Timer
32{
33public:
34
36 Timer();
37
39 Timer( const IceUtil::Time& elapsedTime );
40
42 void restart();
43
45 IceUtil::Time elapsed() const;
46
48 double elapsedMs() const;
49
51 double elapsedSec() const;
52
53private:
54 IceUtil::Time startTime_;
55
56};
57
58} // end namespace
59
60#endif
A handy class that performs timing functions using Ice Time class.
Definition timer.h:32
void restart()
Resets elapsed time to zero.
Definition timer.cpp:25
IceUtil::Time elapsed() const
Returns time elapsed from last restart.
Definition timer.cpp:30
double elapsedMs() const
Returns elapsed milliseconds as a double.
Definition timer.cpp:35
Timer()
Sets elapsed time to zero.
Definition timer.cpp:15
double elapsedSec() const
Returns elapsed seconds as a double.
Definition timer.cpp:40
Utility namespace (part of SICK-ACFR driver)
Definition buffer.h:21
 

Generated for GearBox by  doxygen 1.4.5