[#SetMockTime-03] = SetMockTime :mrdocs: `SetMockTime` overloads == Synopses Declared in `<util/time.h>` For testing. Set e.g. with the setmocktime rpc, or ‐mocktime argument. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:SetMockTime-0e5.adoc[SetMockTime](std::chrono::seconds mock_time_in); ---- [.small]#xref:SetMockTime-0e5.adoc[_» more..._]# For testing. Set the mock time from a NodeClock time point. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:SetMockTime-0ef.adoc[SetMockTime](std::chrono::time_point<NodeClock, std::chrono::seconds> mock); ---- [.small]#xref:SetMockTime-0ef.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *mock_time_in* | Mock time as a duration in seconds, or zero to disable mocking. | *mock* | Mock time point on the NodeClock in seconds. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#