forked from libgit2/libgit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) the libgit2 contributors. All rights reserved. | ||
* | ||
* This file is part of libgit2, distributed under the GNU GPL v2 with | ||
* a Linking Exception. For full terms see the included COPYING file. | ||
*/ | ||
#ifndef INCLUDE_git_time_h__ | ||
#define INCLUDE_git_time_h__ | ||
|
||
#include "git2/common.h" | ||
|
||
GIT_BEGIN_DECL | ||
|
||
/** | ||
* Return a monotonic time value, useful for measuring running time | ||
* and setting up timeouts. | ||
* | ||
* The returned value is an arbitrary point in time -- it can only be | ||
* used when comparing it to another `git_time_monotonic` call. | ||
* | ||
* The time is returned in seconds, with a decimal fraction that differs | ||
* on accuracy based on the underlying system, but should be least | ||
* accurate to Nanoseconds. | ||
* | ||
* This function cannot fail. | ||
*/ | ||
GIT_EXTERN(double) git_time_monotonic(void); | ||
|
||
GIT_END_DECL | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters