Skip to content

Commit

Permalink
[doc / util] Use comments to clarify time unit for int64_t type.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitiuttarwar committed Feb 16, 2021
1 parent 47a7a16 commit 1363b6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/time.h
Expand Up @@ -43,7 +43,12 @@ int64_t GetTimeMicros();
/** Returns the system time (not mockable) */
int64_t GetSystemTimeInSeconds(); // Like GetTime(), but not mockable

/** For testing. Set e.g. with the setmocktime rpc, or -mocktime argument */
/**
* DEPRECATED
* Use SetMockTime with chrono type
*
* @param[in] nMockTimeIn Time in seconds.
*/
void SetMockTime(int64_t nMockTimeIn);

/** For testing. Set e.g. with the setmocktime rpc, or -mocktime argument */
Expand Down

0 comments on commit 1363b6c

Please sign in to comment.