#include <time.hh>
|
void | _set (bool monotonic) |
| Internal time set function.
|
|
Definition at line 48 of file time.hh.
◆ Time() [1/6]
◆ Time() [2/6]
gem5::Time::Time |
( |
double | sec | ) |
|
|
inlineexplicit |
◆ Time() [3/6]
gem5::Time::Time |
( |
const Time & | val | ) |
|
|
inline |
◆ Time() [4/6]
gem5::Time::Time |
( |
uint64_t | sec, |
|
|
uint64_t | nsec ) |
|
inline |
◆ Time() [5/6]
gem5::Time::Time |
( |
const timeval & | tv | ) |
|
|
inline |
◆ Time() [6/6]
gem5::Time::Time |
( |
const timespec & | ts | ) |
|
|
inline |
◆ _set()
void gem5::Time::_set |
( |
bool | monotonic | ) |
|
|
protected |
◆ clear()
void gem5::Time::clear |
( |
| ) |
|
|
inline |
◆ date()
std::string gem5::Time::date |
( |
const std::string & | format = "" | ) |
const |
◆ getTick()
Tick gem5::Time::getTick |
( |
| ) |
const |
◆ msec() [1/2]
long gem5::Time::msec |
( |
| ) |
const |
|
inline |
◆ msec() [2/2]
void gem5::Time::msec |
( |
long | msec | ) |
|
|
inline |
◆ nsec() [1/2]
long gem5::Time::nsec |
( |
| ) |
const |
|
inline |
Definition at line 77 of file time.hh.
References _time.
Referenced by getTick(), operator double(), operator+=(), operator-=(), operator=(), operator=(), operator=(), operator=(), serialize(), set(), Time(), and unserialize().
◆ nsec() [2/2]
void gem5::Time::nsec |
( |
long | nsec | ) |
|
|
inline |
◆ operator double()
gem5::Time::operator double |
( |
| ) |
const |
|
inline |
◆ operator timespec()
gem5::Time::operator timespec |
( |
| ) |
const |
|
inline |
operators for time conversion
Definition at line 161 of file time.hh.
References _time.
◆ operator timeval()
gem5::Time::operator timeval |
( |
| ) |
const |
|
inline |
◆ operator+=()
const Time & gem5::Time::operator+= |
( |
const Time & | other | ) |
|
|
inline |
◆ operator-=()
const Time & gem5::Time::operator-= |
( |
const Time & | other | ) |
|
|
inline |
◆ operator=() [1/4]
const Time & gem5::Time::operator= |
( |
const Time & | other | ) |
|
|
inline |
◆ operator=() [2/4]
const Time & gem5::Time::operator= |
( |
const timespec & | ts | ) |
|
|
inline |
◆ operator=() [3/4]
const Time & gem5::Time::operator= |
( |
const timeval & | tv | ) |
|
|
inline |
◆ operator=() [4/4]
const Time & gem5::Time::operator= |
( |
double | new_time | ) |
|
|
inline |
◆ sec() [1/2]
time_t gem5::Time::sec |
( |
| ) |
const |
|
inline |
Accessors for getting and setting the current clock.
Definition at line 74 of file time.hh.
References _time.
Referenced by date(), getTick(), operator double(), operator timeval(), operator+=(), operator-=(), operator=(), operator=(), operator=(), operator=(), serialize(), set(), Time(), Time(), and unserialize().
◆ sec() [2/2]
void gem5::Time::sec |
( |
time_t | sec | ) |
|
|
inline |
◆ serialize()
void gem5::Time::serialize |
( |
const std::string & | base, |
|
|
CheckpointOut & | cp ) const |
◆ set()
void gem5::Time::set |
( |
time_t | _sec, |
|
|
long | _nsec ) |
|
inline |
◆ setTick()
void gem5::Time::setTick |
( |
Tick | ticks | ) |
|
◆ setTimer()
void gem5::Time::setTimer |
( |
| ) |
|
|
inline |
◆ setWallclock()
void gem5::Time::setWallclock |
( |
| ) |
|
|
inline |
Use this to set the time to the actual current time.
Definition at line 98 of file time.hh.
References _set().
◆ time()
std::string gem5::Time::time |
( |
| ) |
const |
◆ unserialize()
void gem5::Time::unserialize |
( |
const std::string & | base, |
|
|
CheckpointIn & | cp ) |
◆ usec() [1/2]
long gem5::Time::usec |
( |
| ) |
const |
|
inline |
◆ usec() [2/2]
void gem5::Time::usec |
( |
long | usec | ) |
|
|
inline |
◆ _time
timespec gem5::Time::_time |
|
protected |
Definition at line 51 of file time.hh.
Referenced by _set(), clear(), msec(), msec(), nsec(), nsec(), operator timespec(), operator+=(), operator-=(), sec(), sec(), usec(), and usec().
◆ NSEC_PER_MSEC
const long gem5::Time::NSEC_PER_MSEC = 1000 * 1000 |
|
static |
◆ NSEC_PER_SEC
const long gem5::Time::NSEC_PER_SEC = 1000 * 1000 * 1000 |
|
static |
◆ NSEC_PER_USEC
const long gem5::Time::NSEC_PER_USEC = 1000 |
|
static |
The documentation for this class was generated from the following files: