Clock.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  *  Clock.h
00003  *
00004  *  (C) 2006 AG Aktives Sehen <agas@uni-koblenz.de>
00005  *           Universitaet Koblenz-Landau
00006  *
00007  *  Information on Code Review state:
00008  *  §Author: R5; DevelTest: Date; Reviewer: R5; Review: Date; State: OK§
00009  *
00010  *  Additional information:
00011  *  $Id: Clock.h 44313 2011-04-06 22:46:28Z agas $
00012  ******************************************************************************/
00013 
00014 #ifndef CLOCK_H
00015 #define CLOCK_H
00016 
00017 #include <time.h>
00018 #include <assert.h>
00019 #include <sys/time.h>
00020 #include <string>
00021 #include <sstream>
00022 
00030 class Clock
00031 {
00032 
00033         public:
00034 
00039                 static Clock* getInstance();
00040 
00045     unsigned int getTimestamp();
00046 
00051     std::string getTimeString();
00052     std::string getTimeString( unsigned timestamp );
00053 
00055     static std::string getFilenameDateString();
00056 
00060                 virtual ~Clock();
00061 
00062         private:
00063 
00067                 Clock();
00068 
00072                 static Clock* instance;
00073 
00077                 timeval m_StartTime;
00078 };
00079 #endif


robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09