timestamp.cxx File Reference

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

#include <simgear/compiler.h>
#include <time.h>
#include "timestamp.hxx"

Go to the source code of this file.

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.cxx.


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