[#MockableSteadyClock-SetMockTime]
= xref:MockableSteadyClock.adoc[MockableSteadyClock]::SetMockTime
:relfileprefix: ../
:mrdocs:

Set mock time for testing&period; When mocking the steady clock, start at INITIAL&lowbar;MOCK&lowbar;TIME and add durations to elapse time as necessary for testing&period; To stop mocking, call ClearMockTime()&period;

== Synopsis

Declared in `&lt;util&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
SetMockTime(mock&lowbar;time&lowbar;point::duration mock&lowbar;time&lowbar;in);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mock&lowbar;time&lowbar;in*
| Mocked elapsed duration since INITIAL&lowbar;MOCK&lowbar;TIME&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
