Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
Aseba::UnifiedTime Struct Reference

Time or durations, in milliseconds. More...

#include <utils.h>

List of all members.

Public Types

typedef long long unsigned Value
 storage for time

Public Member Functions

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.
UnifiedTime operator+ (const UnifiedTime &that) const
 Add times.
void operator+= (const UnifiedTime &that)
 Add times.
UnifiedTime operator- (const UnifiedTime &that) const
 Substract times.
void operator-= (const UnifiedTime &that)
 Substract times.
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.
bool operator< (const UnifiedTime &that) const
 Time comparison.
void sleep () const
 Sleep for this amount of 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.
 UnifiedTime ()
 Constructor, set time to current time.
 UnifiedTime (Value ms)
 Constructor, from a specific number of ms.
 UnifiedTime (Value seconds, Value milliseconds)
 Constructor, from a specific number of seconds and ms.

Static Public Member Functions

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 60 of file utils.h.


Member Typedef Documentation

typedef long long unsigned Aseba::UnifiedTime::Value

storage for time

Definition at line 63 of file utils.h.


Member Function Documentation

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

Multiply time by an amount.

Definition at line 89 of file utils.h.

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

Multiply time by an amount.

Definition at line 81 of file utils.h.

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

Add times.

Definition at line 83 of file utils.h.

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

Add times.

Definition at line 75 of file utils.h.

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

Substract times.

Definition at line 85 of file utils.h.

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

Substract times.

Definition at line 77 of file utils.h.

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

Divide time by an amount.

Definition at line 87 of file utils.h.

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

Divide time by an amount.

Definition at line 79 of file utils.h.

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

Time comparison.

Definition at line 91 of file utils.h.


Member Data Documentation

time

Definition at line 65 of file utils.h.


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


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:18