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

00001 /*
00002  * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
00003  *               http://gearbox.sf.net/
00004  * Copyright (c) 2004-2010 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef GBXICEUTILACFR_TIMER_H
00012 #define GBXICEUTILACFR_TIMER_H
00013 
00014 #include <IceUtil/Time.h>
00015 
00016 namespace gbxiceutilacfr {
00017 
00031 class Timer
00032 {
00033 public:
00034 
00036     Timer();
00037 
00039     Timer( const IceUtil::Time& elapsedTime );
00040 
00042     void restart();
00043 
00045     IceUtil::Time elapsed() const;
00046 
00048     double elapsedMs() const;
00049 
00051     double elapsedSec() const;
00052 
00053 private:
00054     IceUtil::Time startTime_;
00055 
00056 };
00057 
00058 } // end namespace
00059 
00060 #endif
 

Generated for GearBox by  doxygen 1.4.5