copasi API
0.1
|
#include <CopasiTime.h>
Public Member Functions | |
CCopasiTimeVariable () | |
CCopasiTimeVariable (const CCopasiTimeVariable &src) | |
CCopasiTimeVariable (const C_INT64 &value) | |
~CCopasiTimeVariable () | |
CCopasiTimeVariable | operator+ (const CCopasiTimeVariable &value) |
CCopasiTimeVariable | operator- (const CCopasiTimeVariable &value) |
CCopasiTimeVariable & | operator= (const CCopasiTimeVariable &rhs) |
CCopasiTimeVariable & | operator= (const C_INT64 &value) |
bool | operator< (const CCopasiTimeVariable &value) |
std::string | isoFormat () const |
C_INT64 | getMicroSeconds (const bool &bounded=false) const |
C_INT64 | getMilliSeconds (const bool &bounded=false) const |
C_INT64 | getSeconds (const bool &bounded=false) const |
C_INT64 | getMinutes (const bool &bounded=false) const |
C_INT64 | getHours (const bool &bounded=false) const |
C_INT64 | getDays () const |
Static Public Member Functions | |
static CCopasiTimeVariable | getCurrentWallTime () |
static CCopasiTimeVariable | getCPUTime () |
static std::string | LL2String (const C_INT64 &value, const C_INT32 &digits=0) |
This class is for handling execution time related values. static methods for retreiving wall clock and CPU time are provided.
CCopasiTimeVariable::CCopasiTimeVariable | ( | ) |
Default constructor.
CCopasiTimeVariable::CCopasiTimeVariable | ( | const CCopasiTimeVariable & | src | ) |
Copy constructor.
const | CCopasiTimeVariable & src |
CCopasiTimeVariable::CCopasiTimeVariable | ( | const C_INT64 & | value | ) |
Specific constructor from a C_INT64 value.
const | C_INT64 & value |
CCopasiTimeVariable::~CCopasiTimeVariable | ( | ) |
Destructor.
CCopasiTimeVariable CCopasiTimeVariable::getCPUTime | ( | ) | [static] |
Retrieve the current cpu time used since the start of the process.
CCopasiTimeVariable CCopasiTimeVariable::getCurrentWallTime | ( | ) | [static] |
Retrieve the current wall clock time in micro seconds since 1970-01-01:00:00:00.0
C_INT64 CCopasiTimeVariable::getDays | ( | ) | const |
Retrieve the time in days.
const | bool & bounded (default: false) |
C_INT64 CCopasiTimeVariable::getHours | ( | const bool & | bounded = false | ) | const |
Retrieve the time in hours. If bounded is true 0 <= hours < 24
const | bool & bounded (default: false) |
C_INT64 CCopasiTimeVariable::getMicroSeconds | ( | const bool & | bounded = false | ) | const |
Retrieve the time in micro seconds. If bounded is true 0 <= microSeconds < 1000
const | bool & bounded (default: false) |
C_INT64 CCopasiTimeVariable::getMilliSeconds | ( | const bool & | bounded = false | ) | const |
Retrieve the time in milli seconds. If bounded is true 0 <= milliSeconds < 1000
const | bool & bounded (default: false) |
C_INT64 CCopasiTimeVariable::getMinutes | ( | const bool & | bounded = false | ) | const |
Retrieve the time in minutes. If bounded is true 0 <= minutes < 60
const | bool & bounded (default: false) |
C_INT64 CCopasiTimeVariable::getSeconds | ( | const bool & | bounded = false | ) | const |
Retrieve the time in seconds. If bounded is true 0 <= seconds < 60
const | bool & bounded (default: false) |
std::string CCopasiTimeVariable::isoFormat | ( | ) | const |
Create a iso formated string (D:HH:MM:SS.ssssss)
std::string CCopasiTimeVariable::LL2String | ( | const C_INT64 & | value, |
const C_INT32 & | digits = 0 |
||
) | [static] |
Helper function to convert a C_INT32 to a std::string. If the number of digits is non zero the value is padded with zeros.
const | C_INT64 & value |
const | C_INT32 & digits (default: 0) |
CCopasiTimeVariable CCopasiTimeVariable::operator+ | ( | const CCopasiTimeVariable & | value | ) |
Operator + for adding CCopasiTimeVariables
const | CCopasiTimeVariable & value |
CCopasiTimeVariable CCopasiTimeVariable::operator- | ( | const CCopasiTimeVariable & | value | ) |
Operator - for subtracting CCopasiTimeVariables
const | CCopasiTimeVariable & value |
bool CCopasiTimeVariable::operator< | ( | const CCopasiTimeVariable & | value | ) |
CCopasiTimeVariable & CCopasiTimeVariable::operator= | ( | const CCopasiTimeVariable & | rhs | ) |
CCopasiTimeVariable & CCopasiTimeVariable::operator= | ( | const C_INT64 & | value | ) |
Assignement operator assigning a C_INT64 value to a CCopasiTimeVariable
const | CCopasiTimeVariable & rhs |