V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::base::TimeDelta Class Referencefinal

Public Member Functions

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
 
TimeDeltaoperator= (const TimeDelta &other)=default
 
TimeDelta operator+ (const TimeDelta &other) const
 
TimeDelta operator- (const TimeDelta &other) const
 
TimeDeltaoperator+= (const TimeDelta &other)
 
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 Max ()
 
static constexpr TimeDelta Min ()
 
static TimeDelta FromMachTimespec (struct mach_timespec ts)
 
static TimeDelta FromTimespec (struct timespec ts)
 

Friends

template<class TimeClass >
class time_internal::TimeBase
 

Detailed Description

Definition at line 67 of file time.h.


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