[#SetMockTime-0e5]
= SetMockTime
:mrdocs:

For testing&period; Set e&period;g&period; with the setmocktime rpc, or &hyphen;mocktime argument&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mock&lowbar;time&lowbar;in*
| Mock time as a duration in seconds, or zero to disable mocking&period;
|===


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