Add CefBaseTime and use it instead of CefTime (see issue #2935)

This commit is contained in:
Dmitry Azaraev
2022-05-31 23:28:43 +03:00
committed by Marshall Greenblatt
parent 987b932a19
commit 27d3089804
58 changed files with 502 additions and 228 deletions

View File

@@ -44,7 +44,11 @@ PERF_TEST_FUNC(V8DoubleCreate) {
}
PERF_TEST_FUNC(V8DateCreate) {
static cef_time_t time = {2012, 1, 0, 1};
static cef_time_t time_exploded = {2012, 1, 0, 1};
cef_basetime_t basetime;
cef_time_to_basetime(&time_exploded, &basetime);
CefBaseTime time(basetime);
PERF_ITERATIONS_START()
CefRefPtr<CefV8Value> value = CefV8Value::CreateDate(time);