libgit2

git_time_monotonic

Version:

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.

Signature

double git_time_monotonic();

Returns

double

Versions