Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

Time.hpp

Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 /** @file Time.hpp
00003  */
00004 //----------------------------------------------------------------------------
00005 
00006 #ifndef TIME_HPP
00007 #define TIME_HPP
00008 
00009 #include <string>
00010 #include "Benzene.hpp"
00011 
00012 _BEGIN_BENZENE_NAMESPACE_
00013 
00014 //----------------------------------------------------------------------------
00015 
00016 namespace Time
00017 {
00018     /** Seconds in a one minute. */
00019     static const double ONE_MINUTE = 60.0;
00020     
00021     /** Seconds in one hour. */
00022     static const double ONE_HOUR = 60*ONE_MINUTE;
00023     
00024     /** Seconds in one day. */
00025     static const double ONE_DAY = 24*ONE_HOUR;
00026 
00027     /** Returns the time. */
00028     double Get();
00029 
00030     /** Formats elapsed time as a human readable string. */
00031     std::string Formatted(double elapsed);
00032 }
00033 
00034 //----------------------------------------------------------------------------
00035 
00036 _END_BENZENE_NAMESPACE_
00037 
00038 #endif // TIME_HPP


6 Jan 2011 Doxygen 1.6.3