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

#include <time.h>

Inheritance diagram for v8::base::Time:
Collaboration diagram for v8::base::Time:

Public Member Functions

constexpr Time ()
 
struct timespec ToTimespec () const
 
struct timeval ToTimeval () const
 
struct _FILETIME ToFiletime () const
 
double ToJsTime () const
 
- Public Member Functions inherited from v8::base::time_internal::TimeBase< Time >
constexpr bool IsNull () const
 
constexpr bool IsMax () const
 
constexpr bool IsMin () const
 
int64_t ToInternalValue () const
 
constexpr TimeDelta since_origin () const
 
Timeoperator= (Time other)
 
TimeDelta operator- (Time other) const
 
Time operator- (TimeDelta delta) const
 
Time operator+ (TimeDelta delta) const
 
Timeoperator+= (TimeDelta delta)
 
Timeoperator-= (TimeDelta delta)
 
bool operator== (const TimeBase< Time > &other) const
 
bool operator!= (const TimeBase< Time > &other) const
 
bool operator< (const TimeBase< Time > &other) const
 
bool operator<= (const TimeBase< Time > &other) const
 
bool operator> (const TimeBase< Time > &other) const
 
bool operator>= (const TimeBase< Time > &other) const
 

Static Public Member Functions

static Time Now ()
 
static Time NowFromSystemTime ()
 
static Time UnixEpoch ()
 
static Time FromTimespec (struct timespec ts)
 
static Time FromTimeval (struct timeval tv)
 
static Time FromFiletime (struct _FILETIME ft)
 
static Time FromJsTime (double ms_since_epoch)
 
- Static Public Member Functions inherited from v8::base::time_internal::TimeBase< Time >
static Time Max ()
 
static Time Min ()
 
static Time FromInternalValue (int64_t us)
 

Private Member Functions

constexpr Time (int64_t us)
 

Friends

class time_internal::TimeBase< Time >
 

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< Time >
constexpr TimeBase (int64_t us)
 
- Protected Attributes inherited from v8::base::time_internal::TimeBase< Time >
int64_t us_
 

Detailed Description

Definition at line 367 of file time.h.

Constructor & Destructor Documentation

◆ Time() [1/2]

v8::base::Time::Time ( )
inlineconstexpr

Definition at line 370 of file time.h.

Here is the caller graph for this function:

◆ Time() [2/2]

v8::base::Time::Time ( int64_t us)
inlineexplicitconstexprprivate

Definition at line 405 of file time.h.

Member Function Documentation

◆ FromFiletime()

static Time v8::base::Time::FromFiletime ( struct _FILETIME ft)
static

◆ FromJsTime()

Time v8::base::Time::FromJsTime ( double ms_since_epoch)
static

Definition at line 491 of file time.cc.

Here is the call graph for this function:

◆ FromTimespec()

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

◆ FromTimeval()

static Time v8::base::Time::FromTimeval ( struct timeval tv)
static

◆ Now()

static Time v8::base::Time::Now ( )
static
Here is the caller graph for this function:

◆ NowFromSystemTime()

static Time v8::base::Time::NowFromSystemTime ( )
static
Here is the caller graph for this function:

◆ ToFiletime()

struct _FILETIME v8::base::Time::ToFiletime ( ) const

◆ ToJsTime()

double v8::base::Time::ToJsTime ( ) const

Definition at line 502 of file time.cc.

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

◆ ToTimespec()

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

◆ ToTimeval()

struct timeval v8::base::Time::ToTimeval ( ) const

◆ UnixEpoch()

static Time v8::base::Time::UnixEpoch ( )
inlinestatic

Definition at line 384 of file time.h.

Friends And Related Symbol Documentation

◆ time_internal::TimeBase< Time >

friend class time_internal::TimeBase< Time >
friend

Definition at line 401 of file time.h.


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