Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9f388e9f
Unverified
Commit
9f388e9f
authored
Feb 20, 2019
by
Patrick Steinhardt
Committed by
GitHub
Feb 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4990 from libgit2/remove_time_monotonic
Remove `git_time_monotonic`
parents
d900dde4
e6c6d3bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
include/git2/sys/time.h
+0
-31
src/util.c
+0
-5
No files found.
include/git2/sys/time.h
deleted
100644 → 0
View file @
d900dde4
/*
* 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
src/util.c
View file @
9f388e9f
...
...
@@ -864,11 +864,6 @@ int git__utf8_iterate(const uint8_t *str, int str_len, int32_t *dst)
return
length
;
}
double
git_time_monotonic
(
void
)
{
return
git__timer
();
}
size_t
git__utf8_valid_buf_length
(
const
uint8_t
*
str
,
size_t
str_len
)
{
size_t
offset
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment