Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::Time Class Reference

A time class to escape SDL's 2^32 ms epoch limitations. More...

#include <timer.h>

List of all members.

Public Member Functions

Uint32 ticks () const
 get the SDL ticks (milliseconds) field of the time
Info info () const
 parse the time into days, hours, etc.
bool operator== (const Time &t) const
 check equality of two times
bool operator!= (const Time &t) const
 check inequality of two times
bool operator< (const Time &t) const
 check whether one time occured before another
bool operator> (const Time &t) const
 check whether one time occured after another
bool operator<= (const Time &t) const
 check whether one time occured before another
bool operator>= (const Time &t) const
 check whether one time occured after another
int operator- (const Time &t) const
 find the difference between two times (only valid if the difference can fit in an int)
Timeoperator+= (Uint32)
 increment a timestamp
Timeoperator-= (Uint32)
 decrement a timestamp
Timeoperator+= (int val)
 increment a timestamp
Timeoperator-= (int val)
 decrement a timestamp
Time operator+ (Uint32 val) const
 increment a timestamp
Time operator- (Uint32 val) const
 decrement a timestamp
Time operator+ (int val) const
 increment a timestamp
Time operator- (int val) const
 decrement a timestamp

Static Public Member Functions

Time now ()
 get the current time


Detailed Description

A time class to escape SDL's 2^32 ms epoch limitations.


The documentation for this class was generated from the following files:

Generated Tue Oct 26 19:02:13 2004.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.