gem5  v20.1.0.0
Classes | Functions
time.hh File Reference
#include <sys/time.h>
#include <inttypes.h>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iosfwd>
#include <iostream>
#include <string>
#include "base/types.hh"
#include "sim/serialize.hh"

Go to the source code of this file.

Classes

class  Time
 

Functions

void sleep (const Time &time)
 
bool operator== (const Time &l, const Time &r)
 
bool operator!= (const Time &l, const Time &r)
 
bool operator< (const Time &l, const Time &r)
 
bool operator<= (const Time &l, const Time &r)
 
bool operator> (const Time &l, const Time &r)
 
bool operator>= (const Time &l, const Time &r)
 
Time operator+ (const Time &l, const Time &r)
 
Time operator- (const Time &l, const Time &r)
 
std::ostream & operator<< (std::ostream &out, const Time &time)
 
time_t mkutctime (struct tm *time)
 

Function Documentation

◆ mkutctime()

time_t mkutctime ( struct tm *  time)

Definition at line 153 of file time.cc.

References fatal, and ArmISA::tz.

Referenced by ArmSemihosting::ArmSemihosting(), DumbTOD::DumbTOD(), and MC146818::tickClock().

◆ operator!=()

bool operator!= ( const Time l,
const Time r 
)
inline

Definition at line 210 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ operator+()

Time operator+ ( const Time l,
const Time r 
)
inline

Definition at line 244 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ operator-()

Time operator- ( const Time l,
const Time r 
)
inline

Definition at line 252 of file time.hh.

References MipsISA::l, and MipsISA::r.

Referenced by sc_dt::operator-().

◆ operator<()

bool operator< ( const Time l,
const Time r 
)
inline

Definition at line 216 of file time.hh.

References MipsISA::l, and MipsISA::r.

Referenced by MultiperspectivePerceptron::findBest().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const Time time 
)
inline

Definition at line 260 of file time.hh.

References Time::date().

◆ operator<=()

bool operator<= ( const Time l,
const Time r 
)
inline

Definition at line 223 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ operator==()

bool operator== ( const Time l,
const Time r 
)
inline

Definition at line 204 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ operator>()

bool operator> ( const Time l,
const Time r 
)
inline

Definition at line 230 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ operator>=()

bool operator>= ( const Time l,
const Time r 
)
inline

Definition at line 237 of file time.hh.

References MipsISA::l, and MipsISA::r.

◆ sleep()

void sleep ( const Time time)

Definition at line 141 of file time.cc.

References ArmISA::ts.

Referenced by Root::timeSync().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17