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

#include <time.h>

Inheritance diagram for v8::base::TimeTicks:
Collaboration diagram for v8::base::TimeTicks:

Public Member Functions

constexpr TimeTicks ()
 
- Public Member Functions inherited from v8::base::time_internal::TimeBase< TimeTicks >
constexpr bool IsNull () const
 
constexpr bool IsMax () const
 
constexpr bool IsMin () const
 
int64_t ToInternalValue () const
 
constexpr TimeDelta since_origin () const
 
TimeTicksoperator= (TimeTicks other)
 
TimeDelta operator- (TimeTicks other) const
 
TimeTicks operator- (TimeDelta delta) const
 
TimeTicks operator+ (TimeDelta delta) const
 
TimeTicksoperator+= (TimeDelta delta)
 
TimeTicksoperator-= (TimeDelta delta)
 
bool operator== (const TimeBase< TimeTicks > &other) const
 
bool operator!= (const TimeBase< TimeTicks > &other) const
 
bool operator< (const TimeBase< TimeTicks > &other) const
 
bool operator<= (const TimeBase< TimeTicks > &other) const
 
bool operator> (const TimeBase< TimeTicks > &other) const
 
bool operator>= (const TimeBase< TimeTicks > &other) const
 

Static Public Member Functions

static TimeTicks Now ()
 
static bool IsHighResolution ()
 
static constexpr TimeTicks FromMsTicksForTesting (int64_t ticks)
 
- Static Public Member Functions inherited from v8::base::time_internal::TimeBase< TimeTicks >
static TimeTicks Max ()
 
static TimeTicks Min ()
 
static TimeTicks FromInternalValue (int64_t us)
 

Private Member Functions

constexpr TimeTicks (int64_t ticks)
 

Friends

class time_internal::TimeBase< TimeTicks >
 

Additional Inherited Members

- Static Public Attributes inherited from v8::base::TimeConstants
static constexpr int64_t kHoursPerDay = 24
 
static constexpr int64_t kMillisecondsPerSecond = 1000
 
static constexpr int64_t kMillisecondsPerDay
 
static constexpr int64_t kMicrosecondsPerMillisecond = 1000
 
static constexpr int64_t kMicrosecondsPerSecond
 
static constexpr int64_t kMicrosecondsPerMinute = kMicrosecondsPerSecond * 60
 
static constexpr int64_t kMicrosecondsPerHour = kMicrosecondsPerMinute * 60
 
static constexpr int64_t kMicrosecondsPerDay
 
static constexpr int64_t kMicrosecondsPerWeek = kMicrosecondsPerDay * 7
 
static constexpr int64_t kNanosecondsPerMicrosecond = 1000
 
static constexpr int64_t kNanosecondsPerSecond
 
- Protected Member Functions inherited from v8::base::time_internal::TimeBase< TimeTicks >
constexpr TimeBase (int64_t us)
 
- Protected Attributes inherited from v8::base::time_internal::TimeBase< TimeTicks >
int64_t us_
 

Detailed Description

Definition at line 425 of file time.h.

Constructor & Destructor Documentation

◆ TimeTicks() [1/2]

v8::base::TimeTicks::TimeTicks ( )
inlineconstexpr

Definition at line 428 of file time.h.

Here is the caller graph for this function:

◆ TimeTicks() [2/2]

v8::base::TimeTicks::TimeTicks ( int64_t ticks)
inlineexplicitconstexprprivate

Definition at line 449 of file time.h.

Member Function Documentation

◆ FromMsTicksForTesting()

static constexpr TimeTicks v8::base::TimeTicks::FromMsTicksForTesting ( int64_t ticks)
inlinestaticconstexpr

Definition at line 440 of file time.h.

◆ IsHighResolution()

bool v8::base::TimeTicks::IsHighResolution ( )
static

Definition at line 763 of file time.cc.

Here is the caller graph for this function:

◆ Now()

TimeTicks v8::base::TimeTicks::Now ( )
static

Definition at line 736 of file time.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ time_internal::TimeBase< TimeTicks >

friend class time_internal::TimeBase< TimeTicks >
friend

Definition at line 440 of file time.h.


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