Types for time. More...
Go to the source code of this file.
Classes | |
| struct | base::Milliseconds |
| Time units as distinct SIGNED INTEGER types. More... | |
| struct | base::Microseconds |
| struct | base::Seconds |
| struct | base::Minutes |
| struct | base::Hours |
Namespaces | |
| namespace | base |
Library of base code. | |
Defines | |
| #define | DEFINE_TIME_CLASS(TIME_CLASS) |
Typedefs | |
| typedef int64 | base::TimeInt |
Functions | |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Microseconds2Milliseconds (NUM_TYPE microseconds) |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Milliseconds2Microseconds (NUM_TYPE milliseconds) |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Seconds2Milliseconds (NUM_TYPE seconds) |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Minutes2Milliseconds (NUM_TYPE minutes) |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Microseconds2Seconds (NUM_TYPE microseconds) |
| template<typename NUM_TYPE > | |
| NUM_TYPE | base::Milliseconds2Seconds (NUM_TYPE milliseconds) |
Types for time.
| #define DEFINE_TIME_CLASS | ( | TIME_CLASS | ) |
struct TIME_CLASS \ { \ typedef TimeInt Int; \ TIME_CLASS( void ) : mUnits(0) { } \ explicit TIME_CLASS( Int units ) : mUnits(units) { } \ Int INT( void ) const { return mUnits; } \ fpx FPX( void ) const { return fpx(mUnits); } \ friend std::ostream& operator<<( std::ostream& strm, const TIME_CLASS& t ) \ { strm << t.INT(); return strm; } \ private: \ Int mUnits; \ };
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10