#include <time.hh>
|
void | _set (bool monotonic) |
| Internal time set function. More...
|
|
Definition at line 48 of file time.hh.
Time::Time |
( |
const Time & |
val | ) |
|
|
inline |
Time::Time |
( |
uint64_t |
sec, |
|
|
uint64_t |
nsec |
|
) |
| |
|
inline |
Time::Time |
( |
const timeval & |
tv | ) |
|
|
inline |
Time::Time |
( |
const timespec & |
ts | ) |
|
|
inline |
void Time::_set |
( |
bool |
monotonic | ) |
|
|
protected |
string Time::date |
( |
const std::string & |
format = "" | ) |
const |
Tick Time::getTick |
( |
| ) |
const |
long Time::msec |
( |
| ) |
const |
|
inline |
void Time::msec |
( |
long |
msec | ) |
|
|
inline |
long Time::nsec |
( |
| ) |
const |
|
inline |
Definition at line 77 of file time.hh.
References _time.
Referenced by operator double(), operator!=(), operator+=(), operator-=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and set().
void Time::nsec |
( |
long |
nsec | ) |
|
|
inline |
Time::operator double |
( |
| ) |
const |
|
inline |
Time::operator timespec |
( |
| ) |
const |
|
inline |
operators for time conversion
Definition at line 161 of file time.hh.
References _time.
Time::operator timeval |
( |
| ) |
const |
|
inline |
const Time& Time::operator+= |
( |
const Time & |
other | ) |
|
|
inline |
const Time& Time::operator-= |
( |
const Time & |
other | ) |
|
|
inline |
const Time& Time::operator= |
( |
const Time & |
other | ) |
|
|
inline |
const Time& Time::operator= |
( |
double |
new_time | ) |
|
|
inline |
const Time& Time::operator= |
( |
const timeval & |
tv | ) |
|
|
inline |
const Time& Time::operator= |
( |
const timespec & |
ts | ) |
|
|
inline |
time_t Time::sec |
( |
| ) |
const |
|
inline |
Accessors for getting and setting the current clock.
Definition at line 74 of file time.hh.
References _time.
Referenced by operator double(), operator timeval(), operator!=(), operator+=(), operator-=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and set().
void Time::sec |
( |
time_t |
sec | ) |
|
|
inline |
void Time::serialize |
( |
const std::string & |
base, |
|
|
CheckpointOut & |
cp |
|
) |
| const |
void Time::set |
( |
time_t |
_sec, |
|
|
long |
_nsec |
|
) |
| |
|
inline |
void Time::setTick |
( |
Tick |
ticks | ) |
|
Set the current time from a value measured in Ticks.
- Parameters
-
ticks | Number of ticks to convert into a time. |
Definition at line 58 of file time.cc.
References SimClock::Int::ns.
Referenced by Root::Root().
void Time::setWallclock |
( |
| ) |
|
|
inline |
Use this to set the time to the actual current time.
Definition at line 98 of file time.hh.
References _set().
string Time::time |
( |
| ) |
const |
void Time::unserialize |
( |
const std::string & |
base, |
|
|
CheckpointIn & |
cp |
|
) |
| |
long Time::usec |
( |
| ) |
const |
|
inline |
void Time::usec |
( |
long |
usec | ) |
|
|
inline |
const long Time::NSEC_PER_MSEC = 1000 * 1000 |
|
static |
const long Time::NSEC_PER_SEC = 1000 * 1000 * 1000 |
|
static |
const long Time::NSEC_PER_USEC = 1000 |
|
static |
The documentation for this class was generated from the following files: