[#btck-set_mock_time]
= xref:btck.adoc[btck]::set&lowbar;mock&lowbar;time
:relfileprefix: ../
:mrdocs:

Overrides the kernel&apos;s notion of the current time, for testing&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timestamp*
| The mock time as a duration since the Unix epoch&period;
|===


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