VieSched++
VieVS VLBI Scheduling Software
TimeSpan Class Reference

Represents a time interval. More...

#include <TimeSpan.h>

Public Member Functions

 TimeSpan (int64_t ticks)
 
 TimeSpan (int hours, int minutes, int seconds)
 
 TimeSpan (int days, int hours, int minutes, int seconds)
 
 TimeSpan (int days, int hours, int minutes, int seconds, int microseconds)
 
TimeSpan Add (const TimeSpan &ts) const
 
TimeSpan Subtract (const TimeSpan &ts) const
 
int Compare (const TimeSpan &ts) const
 
bool Equals (const TimeSpan &ts) const
 
int Days () const
 
int Hours () const
 
int Minutes () const
 
int Seconds () const
 
int Milliseconds () const
 
int Microseconds () const
 
int64_t Ticks () const
 
double TotalDays () const
 
double TotalHours () const
 
double TotalMinutes () const
 
double TotalSeconds () const
 
double TotalMilliseconds () const
 
double TotalMicroseconds () const
 
std::string ToString () const
 

Private Member Functions

void CalculateTicks (int days, int hours, int minutes, int seconds, int microseconds)
 

Private Attributes

int64_t m_ticks
 

Detailed Description

Represents a time interval.

Represents a time interval (duration/elapsed) that is measured as a positive or negative number of days, hours, minutes, seconds, and fractions of a second.

Constructor & Destructor Documentation

TimeSpan::TimeSpan ( int64_t  ticks)
inline

Here is the caller graph for this function:

TimeSpan::TimeSpan ( int  hours,
int  minutes,
int  seconds 
)
inline

Here is the call graph for this function:

TimeSpan::TimeSpan ( int  days,
int  hours,
int  minutes,
int  seconds 
)
inline

Here is the call graph for this function:

TimeSpan::TimeSpan ( int  days,
int  hours,
int  minutes,
int  seconds,
int  microseconds 
)
inline

Here is the call graph for this function:

Member Function Documentation

TimeSpan TimeSpan::Add ( const TimeSpan ts) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void TimeSpan::CalculateTicks ( int  days,
int  hours,
int  minutes,
int  seconds,
int  microseconds 
)
inlineprivate

Here is the caller graph for this function:

int TimeSpan::Compare ( const TimeSpan ts) const
inline

Here is the caller graph for this function:

int TimeSpan::Days ( ) const
inline

Here is the caller graph for this function:

bool TimeSpan::Equals ( const TimeSpan ts) const
inline

Here is the caller graph for this function:

int TimeSpan::Hours ( ) const
inline

Here is the caller graph for this function:

int TimeSpan::Microseconds ( ) const
inline

Here is the caller graph for this function:

int TimeSpan::Milliseconds ( ) const
inline
int TimeSpan::Minutes ( ) const
inline

Here is the caller graph for this function:

int TimeSpan::Seconds ( ) const
inline

Here is the caller graph for this function:

TimeSpan TimeSpan::Subtract ( const TimeSpan ts) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

int64_t TimeSpan::Ticks ( ) const
inline

Here is the caller graph for this function:

std::string TimeSpan::ToString ( ) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

double TimeSpan::TotalDays ( ) const
inline

Here is the caller graph for this function:

double TimeSpan::TotalHours ( ) const
inline
double TimeSpan::TotalMicroseconds ( ) const
inline
double TimeSpan::TotalMilliseconds ( ) const
inline
double TimeSpan::TotalMinutes ( ) const
inline
double TimeSpan::TotalSeconds ( ) const
inline

Member Data Documentation

int64_t TimeSpan::m_ticks
private

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