timestamp.hxx File Reference

Provides a class for managing a timestamp (seconds & milliseconds. More...

#include <simgear/compiler.h>

Go to the source code of this file.

Classes

class  SGTimeStamp
 The SGTimeStamp class allows you to mark and compare time stamps with microsecond accuracy (if your system has support for this level of accuracy. More...

Functions

SGTimeStamp operator+ (const SGTimeStamp &t, const long &m)
long operator- (const SGTimeStamp &a, const SGTimeStamp &b)


Detailed Description

Provides a class for managing a timestamp (seconds & milliseconds.

)

Definition in file timestamp.hxx.


Function Documentation

SGTimeStamp operator+ ( const SGTimeStamp t,
const long &  m 
)

Parameters:
t time stamp
m microseconds increment
Returns:
new time stamp

Definition at line 107 of file timestamp.cxx.

References SGTimeStamp::seconds, and SGTimeStamp::usec.

long operator- ( const SGTimeStamp a,
const SGTimeStamp b 
)

Parameters:
a timestamp 1
b timestame 2
Returns:
difference in microseconds

Definition at line 113 of file timestamp.cxx.

References SGTimeStamp::seconds, and SGTimeStamp::usec.


Generated on Mon Dec 17 09:30:56 2007 for SimGear by  doxygen 1.5.1