Classes | Namespaces | Defines | Typedefs | Functions

_src_base_time.hh File Reference

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)

Detailed Description

Types for time.

LastChangedDate:
2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define DEFINE_TIME_CLASS (   TIME_CLASS  ) 
Value:
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;                                                                 \
};
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10