v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::TimeDelta Class Referencefinal

#include <time.h>

Collaboration diagram for v8::base::TimeDelta:

Public Member Functions

constexpr TimeDelta ()
 
constexpr bool IsZero () const
 
constexpr bool IsMax () const
 
constexpr bool IsMin () const
 
int InDays () const
 
int InHours () const
 
int InMinutes () const
 
double InSecondsF () const
 
int64_t InSeconds () const
 
double InMillisecondsF () const
 
int64_t InMilliseconds () const
 
int64_t InMillisecondsRoundedUp () const
 
int64_t InMicroseconds () const
 
int64_t InNanoseconds () const
 
struct mach_timespec ToMachTimespec () const
 
struct timespec ToTimespec () const
 
constexpr TimeDelta operator+ (const TimeDelta &other) const
 
constexpr TimeDelta operator- (const TimeDelta &other) const
 
constexpr TimeDeltaoperator+= (const TimeDelta &other)
 
constexpr TimeDeltaoperator-= (const TimeDelta &other)
 
constexpr TimeDelta operator- () const
 
double TimesOf (const TimeDelta &other) const
 
double PercentOf (const TimeDelta &other) const
 
TimeDelta operator* (int64_t a) const
 
TimeDelta operator/ (int64_t a) const
 
TimeDeltaoperator*= (int64_t a)
 
TimeDeltaoperator/= (int64_t a)
 
int64_t operator/ (const TimeDelta &other) const
 
constexpr bool operator== (const TimeDelta &other) const
 
constexpr bool operator!= (const TimeDelta &other) const
 
constexpr bool operator< (const TimeDelta &other) const
 
constexpr bool operator<= (const TimeDelta &other) const
 
constexpr bool operator> (const TimeDelta &other) const
 
constexpr bool operator>= (const TimeDelta &other) const
 

Static Public Member Functions

static constexpr TimeDelta FromDays (int days)
 
static constexpr TimeDelta FromHours (int hours)
 
static constexpr TimeDelta FromMinutes (int minutes)
 
static constexpr TimeDelta FromSeconds (int64_t seconds)
 
static constexpr TimeDelta FromMilliseconds (int64_t milliseconds)
 
static constexpr TimeDelta FromMicroseconds (int64_t microseconds)
 
static constexpr TimeDelta FromNanoseconds (int64_t nanoseconds)
 
static constexpr TimeDelta FromSecondsD (double seconds)
 
static constexpr TimeDelta FromMillisecondsD (double milliseconds)
 
static constexpr TimeDelta Max ()
 
static constexpr TimeDelta Min ()
 
static TimeDelta FromMachTimespec (struct mach_timespec ts)
 
static TimeDelta FromTimespec (struct timespec ts)
 

Private Member Functions

constexpr TimeDelta (int64_t delta)
 

Static Private Member Functions

static constexpr TimeDelta FromDouble (double value)
 

Private Attributes

int64_t delta_
 

Friends

template<class TimeClass >
class time_internal::TimeBase
 
void swap (TimeDelta a, TimeDelta b)
 

Detailed Description

Definition at line 67 of file time.h.

Constructor & Destructor Documentation

◆ TimeDelta() [1/2]

v8::base::TimeDelta::TimeDelta ( )
inlineconstexpr

Definition at line 69 of file time.h.

Here is the caller graph for this function:

◆ TimeDelta() [2/2]

v8::base::TimeDelta::TimeDelta ( int64_t delta)
inlineexplicitconstexprprivate

Definition at line 221 of file time.h.

Member Function Documentation

◆ FromDays()

static constexpr TimeDelta v8::base::TimeDelta::FromDays ( int days)
inlinestaticconstexpr

Definition at line 72 of file time.h.

◆ FromDouble()

TimeDelta v8::base::TimeDelta::FromDouble ( double value)
inlinestaticconstexprprivate

Definition at line 228 of file time.h.

Here is the call graph for this function:

◆ FromHours()

static constexpr TimeDelta v8::base::TimeDelta::FromHours ( int hours)
inlinestaticconstexpr

Definition at line 75 of file time.h.

◆ FromMachTimespec()

static TimeDelta v8::base::TimeDelta::FromMachTimespec ( struct mach_timespec ts)
static

◆ FromMicroseconds()

static constexpr TimeDelta v8::base::TimeDelta::FromMicroseconds ( int64_t microseconds)
inlinestaticconstexpr

Definition at line 87 of file time.h.

Here is the caller graph for this function:

◆ FromMilliseconds()

static constexpr TimeDelta v8::base::TimeDelta::FromMilliseconds ( int64_t milliseconds)
inlinestaticconstexpr

Definition at line 84 of file time.h.

Here is the caller graph for this function:

◆ FromMillisecondsD()

static constexpr TimeDelta v8::base::TimeDelta::FromMillisecondsD ( double milliseconds)
inlinestaticconstexpr

Definition at line 97 of file time.h.

Here is the caller graph for this function:

◆ FromMinutes()

static constexpr TimeDelta v8::base::TimeDelta::FromMinutes ( int minutes)
inlinestaticconstexpr

Definition at line 78 of file time.h.

◆ FromNanoseconds()

static constexpr TimeDelta v8::base::TimeDelta::FromNanoseconds ( int64_t nanoseconds)
inlinestaticconstexpr

Definition at line 90 of file time.h.

Here is the caller graph for this function:

◆ FromSeconds()

static constexpr TimeDelta v8::base::TimeDelta::FromSeconds ( int64_t seconds)
inlinestaticconstexpr

Definition at line 81 of file time.h.

Here is the caller graph for this function:

◆ FromSecondsD()

static constexpr TimeDelta v8::base::TimeDelta::FromSecondsD ( double seconds)
inlinestaticconstexpr

Definition at line 94 of file time.h.

◆ FromTimespec()

static TimeDelta v8::base::TimeDelta::FromTimespec ( struct timespec ts)
static

◆ InDays()

int v8::base::TimeDelta::InDays ( ) const

Definition at line 186 of file time.cc.

Here is the call graph for this function:

◆ InHours()

int v8::base::TimeDelta::InHours ( ) const

Definition at line 194 of file time.cc.

Here is the call graph for this function:

◆ InMicroseconds()

int64_t v8::base::TimeDelta::InMicroseconds ( ) const

Definition at line 251 of file time.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InMilliseconds()

int64_t v8::base::TimeDelta::InMilliseconds ( ) const

Definition at line 234 of file time.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InMillisecondsF()

double v8::base::TimeDelta::InMillisecondsF ( ) const

Definition at line 226 of file time.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InMillisecondsRoundedUp()

int64_t v8::base::TimeDelta::InMillisecondsRoundedUp ( ) const

Definition at line 242 of file time.cc.

Here is the call graph for this function:

◆ InMinutes()

int v8::base::TimeDelta::InMinutes ( ) const

Definition at line 202 of file time.cc.

Here is the call graph for this function:

◆ InNanoseconds()

int64_t v8::base::TimeDelta::InNanoseconds ( ) const

Definition at line 259 of file time.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InSeconds()

int64_t v8::base::TimeDelta::InSeconds ( ) const

Definition at line 218 of file time.cc.

Here is the call graph for this function:

◆ InSecondsF()

double v8::base::TimeDelta::InSecondsF ( ) const

Definition at line 210 of file time.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsMax()

bool v8::base::TimeDelta::IsMax ( ) const
inlineconstexpr

Definition at line 116 of file time.h.

Here is the caller graph for this function:

◆ IsMin()

bool v8::base::TimeDelta::IsMin ( ) const
inlineconstexpr

Definition at line 119 of file time.h.

◆ IsZero()

bool v8::base::TimeDelta::IsZero ( ) const
inlineconstexpr

Definition at line 113 of file time.h.

Here is the caller graph for this function:

◆ Max()

TimeDelta v8::base::TimeDelta::Max ( )
staticconstexpr

Definition at line 233 of file time.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Min()

TimeDelta v8::base::TimeDelta::Min ( )
staticconstexpr

Definition at line 238 of file time.h.

Here is the call graph for this function:

◆ operator!=()

bool v8::base::TimeDelta::operator!= ( const TimeDelta & other) const
inlineconstexpr

Definition at line 196 of file time.h.

◆ operator*()

TimeDelta v8::base::TimeDelta::operator* ( int64_t a) const
inline

Definition at line 174 of file time.h.

◆ operator*=()

TimeDelta & v8::base::TimeDelta::operator*= ( int64_t a)
inline

Definition at line 180 of file time.h.

◆ operator+()

TimeDelta v8::base::TimeDelta::operator+ ( const TimeDelta & other) const
inlineconstexpr

Definition at line 148 of file time.h.

◆ operator+=()

TimeDelta & v8::base::TimeDelta::operator+= ( const TimeDelta & other)
inlineconstexpr

Definition at line 155 of file time.h.

◆ operator-() [1/2]

TimeDelta v8::base::TimeDelta::operator- ( ) const
inlineconstexpr

Definition at line 163 of file time.h.

◆ operator-() [2/2]

TimeDelta v8::base::TimeDelta::operator- ( const TimeDelta & other) const
inlineconstexpr

Definition at line 151 of file time.h.

◆ operator-=()

TimeDelta & v8::base::TimeDelta::operator-= ( const TimeDelta & other)
inlineconstexpr

Definition at line 159 of file time.h.

◆ operator/() [1/2]

int64_t v8::base::TimeDelta::operator/ ( const TimeDelta & other) const
inline

Definition at line 188 of file time.h.

◆ operator/() [2/2]

TimeDelta v8::base::TimeDelta::operator/ ( int64_t a) const
inline

Definition at line 177 of file time.h.

◆ operator/=()

TimeDelta & v8::base::TimeDelta::operator/= ( int64_t a)
inline

Definition at line 184 of file time.h.

◆ operator<()

bool v8::base::TimeDelta::operator< ( const TimeDelta & other) const
inlineconstexpr

Definition at line 199 of file time.h.

◆ operator<=()

bool v8::base::TimeDelta::operator<= ( const TimeDelta & other) const
inlineconstexpr

Definition at line 202 of file time.h.

◆ operator==()

bool v8::base::TimeDelta::operator== ( const TimeDelta & other) const
inlineconstexpr

Definition at line 193 of file time.h.

◆ operator>()

bool v8::base::TimeDelta::operator> ( const TimeDelta & other) const
inlineconstexpr

Definition at line 205 of file time.h.

◆ operator>=()

bool v8::base::TimeDelta::operator>= ( const TimeDelta & other) const
inlineconstexpr

Definition at line 208 of file time.h.

◆ PercentOf()

double v8::base::TimeDelta::PercentOf ( const TimeDelta & other) const
inline

Definition at line 168 of file time.h.

◆ TimesOf()

double v8::base::TimeDelta::TimesOf ( const TimeDelta & other) const
inline

Definition at line 165 of file time.h.

Here is the caller graph for this function:

◆ ToMachTimespec()

struct mach_timespec v8::base::TimeDelta::ToMachTimespec ( ) const

◆ ToTimespec()

struct timespec v8::base::TimeDelta::ToTimespec ( ) const

Friends And Related Symbol Documentation

◆ swap

void swap ( TimeDelta a,
TimeDelta b )
friend

Definition at line 212 of file time.h.

◆ time_internal::TimeBase

template<class TimeClass >
friend class time_internal::TimeBase
friend

Definition at line 217 of file time.h.

Member Data Documentation

◆ delta_

int64_t v8::base::TimeDelta::delta_
private

Definition at line 224 of file time.h.


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