gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

time_t mkutctime ( struct tm *  time)

Definition at line 152 of file time.cc.

References fatal.

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

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

Definition at line 213 of file time.hh.

References Time::nsec(), and Time::sec().

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

Definition at line 247 of file time.hh.

References MipsISA::r.

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

Definition at line 255 of file time.hh.

References MipsISA::r.

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

Definition at line 219 of file time.hh.

References Time::nsec(), and Time::sec().

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

Definition at line 263 of file time.hh.

References Time::date().

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

Definition at line 226 of file time.hh.

References Time::nsec(), and Time::sec().

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

Definition at line 207 of file time.hh.

References Time::nsec(), and Time::sec().

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

Definition at line 233 of file time.hh.

References Time::nsec(), and Time::sec().

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

Definition at line 240 of file time.hh.

References Time::nsec(), and Time::sec().

void sleep ( const Time time)

Definition at line 140 of file time.cc.

References MipsISA::ts.

Referenced by Root::timeSync().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6