![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <time.h>
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 |
| Time & | operator= (Time other) |
| TimeDelta | operator- (Time other) const |
| Time | operator- (TimeDelta delta) const |
| Time | operator+ (TimeDelta delta) const |
| Time & | operator+= (TimeDelta delta) |
| Time & | operator-= (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_ |
|
inlineconstexpr |
|
inlineexplicitconstexprprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct _FILETIME v8::base::Time::ToFiletime | ( | ) | const |
| double v8::base::Time::ToJsTime | ( | ) | const |
| struct timespec v8::base::Time::ToTimespec | ( | ) | const |
| struct timeval v8::base::Time::ToTimeval | ( | ) | const |
|
friend |