SADB-Client  0.99
Situational Awareness Database
 All Classes Functions Variables
Public Member Functions | Public Attributes | List of all members
SADB::Timestamp Class Reference

Public Member Functions

 Timestamp (void)
 
 ~Timestamp (void)
 
void Initialize (void)
 Initializes object to 0.
 
void Free (void)
 Frees allocated memory.
 
void Print (void)
 Print the timestamp.
 
void Now (void)
 Set the timestamp to the current time.
 
void Set (SADBu64 second, SADBu16 millisecond)
 
SADBdfl SecondDifference (Timestamp *B)
 
SADBs64 MillisecondDifference (Timestamp *B)
 
SADBdfl Get (void)
 Get the timestamp in SMC double format.
 
void Set (SADBdfl time)
 

Public Attributes

SADBu64 Second
 
SADBu16 Millisecond
 

Constructor & Destructor Documentation

Timestamp::Timestamp ( void  )

Constructor

See also
Timestamp::Initialize
Timestamp::~Timestamp ( void  )

Destructor

See also
Timestamp::Free

Member Function Documentation

SADBs64 Timestamp::MillisecondDifference ( Timestamp B)

Get the number of seconds between the current timestamp object and another timestamp object

Parameters
BThe other timestamp
Note
If you have 2 timestamp objects A and B, A.SecondDifference(&B) will return B-A.
If the distance between timestamps is very large, there is a possibility of overflow. This should only happen if the number of seconds between the two timestamps is greater than ~ 1.8e16.
SADBdfl Timestamp::SecondDifference ( Timestamp B)

Get the number of seconds between the current timestamp object and another timestamp object

Parameters
BThe other timestamp
Note
If you have 2 timestamp objects A and B, A.SecondDifference(&B) will return B-A.
If the distance between timestamps is very large, there is a possibility of overflow. This should only happen if the number of seconds between the two timestamps is greater than ~ 9e15.
void Timestamp::Set ( SADBu64  second,
SADBu16  millisecond 
)

Manually set the timestamp

Parameters
secondTarget Time (second part)
millisecondTarget Time (millisecond part)
void Timestamp::Set ( SADBdfl  time)

Manually set the timestamp, in SMC double format

Parameters
timeTarget Time

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