Blame include/git2/sys/time.h

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