Set mock time for testing. When mocking the steady clock, start at INITIAL_MOCK_TIME and add durations to elapse time as necessary for testing. To stop mocking, call ClearMockTime().

Synopsis

Declared in <util/time.h>

static
void
SetMockTime(mock_time_point::duration mock_time_in);

Parameters

Name

Description

mock_time_in

Mocked elapsed duration since INITIAL_MOCK_TIME.

Created with MrDocs