mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefBaseTime and use it instead of CefTime (see issue #2935)
This commit is contained in:
committed by
Marshall Greenblatt
parent
987b932a19
commit
27d3089804
@@ -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);
|
||||
|
Reference in New Issue
Block a user