Blame include/git2/sys/time.h
|
Packit Service |
20376f |
/*
|
|
Packit Service |
20376f |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit Service |
20376f |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit Service |
20376f |
*/
|
|
Packit Service |
20376f |
#ifndef INCLUDE_git_time_h__
|
|
Packit Service |
20376f |
#define INCLUDE_git_time_h__
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#include "git2/common.h"
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
GIT_BEGIN_DECL
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
/**
|
|
Packit Service |
20376f |
* Return a monotonic time value, useful for measuring running time
|
|
Packit Service |
20376f |
* and setting up timeouts.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* The returned value is an arbitrary point in time -- it can only be
|
|
Packit Service |
20376f |
* used when comparing it to another `git_time_monotonic` call.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* The time is returned in seconds, with a decimal fraction that differs
|
|
Packit Service |
20376f |
* on accuracy based on the underlying system, but should be least
|
|
Packit Service |
20376f |
* accurate to Nanoseconds.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* This function cannot fail.
|
|
Packit Service |
20376f |
*/
|
|
Packit Service |
20376f |
GIT_EXTERN(double) git_time_monotonic(void);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
GIT_END_DECL
|
|
Packit Service |
20376f |
#endif
|
|
Packit Service |
20376f |
|