v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::time_internal::TimeBase< TimeClass > Class Template Reference

#include <time.h>

Inheritance diagram for v8::base::time_internal::TimeBase< TimeClass >:
Collaboration diagram for v8::base::time_internal::TimeBase< TimeClass >:

Public Member Functions

constexpr bool IsNull () const
 
constexpr bool IsMax () const
 
constexpr bool IsMin () const
 
int64_t ToInternalValue () const
 
constexpr TimeDelta since_origin () const
 
TimeClass & operator= (TimeClass other)
 
TimeDelta operator- (TimeClass other) const
 
TimeClass operator+ (TimeDelta delta) const
 
TimeClass operator- (TimeDelta delta) const
 
TimeClass & operator+= (TimeDelta delta)
 
TimeClass & operator-= (TimeDelta delta)
 
bool operator== (const TimeBase< TimeClass > &other) const
 
bool operator!= (const TimeBase< TimeClass > &other) const
 
bool operator< (const TimeBase< TimeClass > &other) const
 
bool operator<= (const TimeBase< TimeClass > &other) const
 
bool operator> (const TimeBase< TimeClass > &other) const
 
bool operator>= (const TimeBase< TimeClass > &other) const
 

Static Public Member Functions

static TimeClass Max ()
 
static TimeClass Min ()
 
static TimeClass FromInternalValue (int64_t us)
 

Protected Member Functions

constexpr TimeBase (int64_t us)
 

Protected Attributes

int64_t us_
 

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
 

Detailed Description

template<class TimeClass>
class v8::base::time_internal::TimeBase< TimeClass >

Definition at line 251 of file time.h.

Constructor & Destructor Documentation

◆ TimeBase()

template<class TimeClass >
v8::base::time_internal::TimeBase< TimeClass >::TimeBase ( int64_t us)
inlineexplicitconstexprprotected

Definition at line 352 of file time.h.

Member Function Documentation

◆ FromInternalValue()

template<class TimeClass >
static TimeClass v8::base::time_internal::TimeBase< TimeClass >::FromInternalValue ( int64_t us)
inlinestatic

Definition at line 349 of file time.h.

◆ IsMax()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::IsMax ( ) const
inlineconstexpr

Definition at line 277 of file time.h.

◆ IsMin()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::IsMin ( ) const
inlineconstexpr

Definition at line 280 of file time.h.

◆ IsNull()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::IsNull ( ) const
inlineconstexpr

Definition at line 265 of file time.h.

Here is the caller graph for this function:

◆ Max()

template<class TimeClass >
static TimeClass v8::base::time_internal::TimeBase< TimeClass >::Max ( )
inlinestatic

Definition at line 269 of file time.h.

◆ Min()

template<class TimeClass >
static TimeClass v8::base::time_internal::TimeBase< TimeClass >::Min ( )
inlinestatic

Definition at line 272 of file time.h.

◆ operator!=()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator!= ( const TimeBase< TimeClass > & other) const
inline

Definition at line 329 of file time.h.

◆ operator+()

template<class TimeClass >
TimeClass v8::base::time_internal::TimeBase< TimeClass >::operator+ ( TimeDelta delta) const
inline

Definition at line 310 of file time.h.

Here is the call graph for this function:

◆ operator+=()

template<class TimeClass >
TimeClass & v8::base::time_internal::TimeBase< TimeClass >::operator+= ( TimeDelta delta)
inline

Definition at line 318 of file time.h.

◆ operator-() [1/2]

template<class TimeClass >
TimeDelta v8::base::time_internal::TimeBase< TimeClass >::operator- ( TimeClass other) const
inline

Definition at line 305 of file time.h.

Here is the call graph for this function:

◆ operator-() [2/2]

template<class TimeClass >
TimeClass v8::base::time_internal::TimeBase< TimeClass >::operator- ( TimeDelta delta) const
inline

Definition at line 313 of file time.h.

Here is the call graph for this function:

◆ operator-=()

template<class TimeClass >
TimeClass & v8::base::time_internal::TimeBase< TimeClass >::operator-= ( TimeDelta delta)
inline

Definition at line 321 of file time.h.

◆ operator<()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator< ( const TimeBase< TimeClass > & other) const
inline

Definition at line 332 of file time.h.

◆ operator<=()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator<= ( const TimeBase< TimeClass > & other) const
inline

Definition at line 335 of file time.h.

◆ operator=()

template<class TimeClass >
TimeClass & v8::base::time_internal::TimeBase< TimeClass >::operator= ( TimeClass other)
inline

Definition at line 299 of file time.h.

◆ operator==()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator== ( const TimeBase< TimeClass > & other) const
inline

Definition at line 326 of file time.h.

◆ operator>()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator> ( const TimeBase< TimeClass > & other) const
inline

Definition at line 338 of file time.h.

◆ operator>=()

template<class TimeClass >
bool v8::base::time_internal::TimeBase< TimeClass >::operator>= ( const TimeBase< TimeClass > & other) const
inline

Definition at line 341 of file time.h.

◆ since_origin()

template<class TimeClass >
TimeDelta v8::base::time_internal::TimeBase< TimeClass >::since_origin ( ) const
inlineconstexpr

Definition at line 295 of file time.h.

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

◆ ToInternalValue()

template<class TimeClass >
int64_t v8::base::time_internal::TimeBase< TimeClass >::ToInternalValue ( ) const
inline

Definition at line 287 of file time.h.

Here is the caller graph for this function:

Member Data Documentation

◆ us_

template<class TimeClass >
int64_t v8::base::time_internal::TimeBase< TimeClass >::us_
protected

Definition at line 355 of file time.h.


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