Aseba::UnifiedTime Struct Reference
[General helper functions and classes]

Time or durations, in milliseconds. More...

#include <utils.h>

List of all members.

Public Types

typedef long long unsigned Value
 storage for time
typedef long long unsigned Value
 storage for time

Public Member Functions

UnifiedTime operator* (const long long unsigned factor) const
 Multiply time by an amount.
UnifiedTime operator* (const long long unsigned factor) const
 Multiply time by an amount.
void operator*= (const long long unsigned factor)
 Multiply time by an amount.
void operator*= (const long long unsigned factor)
 Multiply time by an amount.
UnifiedTime operator+ (const UnifiedTime &that) const
 Add times.
UnifiedTime operator+ (const UnifiedTime &that) const
 Add times.
void operator+= (const UnifiedTime &that)
 Add times.
void operator+= (const UnifiedTime &that)
 Add times.
UnifiedTime operator- (const UnifiedTime &that) const
 Substract times.
UnifiedTime operator- (const UnifiedTime &that) const
 Substract times.
void operator-= (const UnifiedTime &that)
 Substract times.
void operator-= (const UnifiedTime &that)
 Substract times.
UnifiedTime operator/ (const long long unsigned factor) const
 Divide time by an amount.
UnifiedTime operator/ (const long long unsigned factor) const
 Divide time by an amount.
void operator/= (const long long unsigned factor)
 Divide time by an amount.
void operator/= (const long long unsigned factor)
 Divide time by an amount.
bool operator< (const UnifiedTime &that) const
 Time comparison.
bool operator< (const UnifiedTime &that) const
 Time comparison.
void sleep () const
 Sleep for this amount of time.
void sleep () const
 Sleep for this amount of time.
std::string toHumanReadableStringFromEpoch () const
 Create a human readable string with this time.
std::string toHumanReadableStringFromEpoch () const
 Create a human readable string with this time.
std::string toRawTimeString () const
 Return the raw time string representing this time.
std::string toRawTimeString () const
 Return the raw time string representing this time.
 UnifiedTime (Value seconds, Value milliseconds)
 Constructor, from a specific number of seconds and ms.
 UnifiedTime (Value ms)
 Constructor, from a specific number of ms.
 UnifiedTime ()
 Constructor, set time to current time.
 UnifiedTime (Value seconds, Value milliseconds)
 Constructor, from a specific number of seconds and ms.
 UnifiedTime (Value ms)
 Constructor, from a specific number of ms.
 UnifiedTime ()
 Constructor, set time to current time.

Static Public Member Functions

static UnifiedTime fromRawTimeString (const std::string &rawTimeString)
 Return the time from the raw time string.
static UnifiedTime fromRawTimeString (const std::string &rawTimeString)
 Return the time from the raw time string.

Public Attributes

Value value
 time

Detailed Description

Time or durations, in milliseconds.

Definition at line 39 of file utils.h.


Member Typedef Documentation

typedef long long unsigned Aseba::UnifiedTime::Value

storage for time

Definition at line 42 of file utils.h.

typedef long long unsigned Aseba::UnifiedTime::Value

storage for time

Definition at line 42 of file utils.h.


Constructor & Destructor Documentation

Aseba::UnifiedTime::UnifiedTime (  ) 

Constructor, set time to current time.

Aseba::UnifiedTime::UnifiedTime ( Value  ms  ) 

Constructor, from a specific number of ms.

Aseba::UnifiedTime::UnifiedTime ( Value  seconds,
Value  milliseconds 
)

Constructor, from a specific number of seconds and ms.


Member Function Documentation

static UnifiedTime Aseba::UnifiedTime::fromRawTimeString ( const std::string &  rawTimeString  )  [static]

Return the time from the raw time string.

UnifiedTime Aseba::UnifiedTime::operator* ( const long long unsigned  factor  )  const [inline]

Multiply time by an amount.

Definition at line 68 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator* ( const long long unsigned  factor  )  const [inline]

Multiply time by an amount.

Definition at line 68 of file utils.h.

void Aseba::UnifiedTime::operator*= ( const long long unsigned  factor  )  [inline]

Multiply time by an amount.

Definition at line 60 of file utils.h.

void Aseba::UnifiedTime::operator*= ( const long long unsigned  factor  )  [inline]

Multiply time by an amount.

Definition at line 60 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator+ ( const UnifiedTime that  )  const [inline]

Add times.

Definition at line 62 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator+ ( const UnifiedTime that  )  const [inline]

Add times.

Definition at line 62 of file utils.h.

void Aseba::UnifiedTime::operator+= ( const UnifiedTime that  )  [inline]

Add times.

Definition at line 54 of file utils.h.

void Aseba::UnifiedTime::operator+= ( const UnifiedTime that  )  [inline]

Add times.

Definition at line 54 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator- ( const UnifiedTime that  )  const [inline]

Substract times.

Definition at line 64 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator- ( const UnifiedTime that  )  const [inline]

Substract times.

Definition at line 64 of file utils.h.

void Aseba::UnifiedTime::operator-= ( const UnifiedTime that  )  [inline]

Substract times.

Definition at line 56 of file utils.h.

void Aseba::UnifiedTime::operator-= ( const UnifiedTime that  )  [inline]

Substract times.

Definition at line 56 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator/ ( const long long unsigned  factor  )  const [inline]

Divide time by an amount.

Definition at line 66 of file utils.h.

UnifiedTime Aseba::UnifiedTime::operator/ ( const long long unsigned  factor  )  const [inline]

Divide time by an amount.

Definition at line 66 of file utils.h.

void Aseba::UnifiedTime::operator/= ( const long long unsigned  factor  )  [inline]

Divide time by an amount.

Definition at line 58 of file utils.h.

void Aseba::UnifiedTime::operator/= ( const long long unsigned  factor  )  [inline]

Divide time by an amount.

Definition at line 58 of file utils.h.

bool Aseba::UnifiedTime::operator< ( const UnifiedTime that  )  const [inline]

Time comparison.

Definition at line 70 of file utils.h.

bool Aseba::UnifiedTime::operator< ( const UnifiedTime that  )  const [inline]

Time comparison.

Definition at line 70 of file utils.h.

void Aseba::UnifiedTime::sleep (  )  const

Sleep for this amount of time.

std::string Aseba::UnifiedTime::toHumanReadableStringFromEpoch (  )  const

Create a human readable string with this time.

std::string Aseba::UnifiedTime::toRawTimeString (  )  const

Return the raw time string representing this time.


Member Data Documentation

time

Definition at line 44 of file utils.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:15 2011