FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
libgit2/tests/clar_libgit2_timer.h at executable · novalis/libgit2 · GitHub
novalis
/
libgit2
Public
forked from
dturner-tw/libgit2
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
libgit2
/
tests
/
clar_libgit2_timer.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (26 loc) · 784 Bytes
Breadcrumbs
libgit2
/
tests
/
clar_libgit2_timer.h
Copy path
File metadata and controls
35 lines (26 loc) · 784 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef
__CLAR_LIBGIT2_TIMER__
#define
__CLAR_LIBGIT2_TIMER__
struct
cl_perf_timer
{
/* cummulative running time across all start..stop intervals */
double
sum
;
/* value of last start..stop interval */
double
last
;
/* clock value at start */
double
time_started
;
};
#define
CL_PERF_TIMER_INIT
{0}
typedef
struct
cl_perf_timer
cl_perf_timer
;
void
cl_perf_timer__init
(
cl_perf_timer
*
t
);
void
cl_perf_timer__start
(
cl_perf_timer
*
t
);
void
cl_perf_timer__stop
(
cl_perf_timer
*
t
);
/**
* return value of last start..stop interval in seconds.
*/
double
cl_perf_timer__last
(
const
cl_perf_timer
*
t
);
/**
* return cummulative running time across all start..stop
* intervals in seconds.
*/
double
cl_perf_timer__sum
(
const
cl_perf_timer
*
t
);
#endif
/* __CLAR_LIBGIT2_TIMER__ */
Back
|
FazBrowse Home
|
New Git URL