Timer.hpp
Go to the documentation of this file.
00001 /*
00002  * Timer.hpp
00003  *
00004  *  Created on: Oct 27, 2011
00005  *      Author: mriedel
00006  */
00007 
00008 #ifndef TIMER_HPP_
00009 #define TIMER_HPP_
00010 
00011 #include <telekyb_defines/telekyb_defines.hpp>
00012 
00013 #include <telekyb_base/Time/Time.hpp>
00014 
00015 namespace TELEKYB_NAMESPACE {
00016 
00017 // from MIP Baselib
00018 
00019 class Timer {
00020 private:
00021         Time _start;
00022         Time _accu;
00023         bool _pause;
00024 
00025 public:
00027         Timer();
00028 
00030         Timer(const Time& elapsed);
00031 
00033         Timer(const Timer& t);
00034 
00036         virtual ~Timer();
00037 
00039         Timer& operator=(const Timer& t);
00040 
00042         void reset();
00043 
00047         void pause();
00048 
00050         void resume();
00051 
00054         Time getElapsed() const;
00055 
00057         std::string toString();
00058 
00060         double frequency();
00061 
00063         std::string freqToString();
00064 };
00065 
00066 }
00067 
00068 #endif /* TIMER_HPP_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_base
Author(s): Dr. Antonio Franchi and Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:34