Skip to content

Commit

Permalink
Removed two function for perf.c public API.
Browse files Browse the repository at this point in the history
Removed functions:
* lexbor_perf_clock
* lexbor_perf_frequency
  • Loading branch information
lexborisov committed Aug 25, 2018
1 parent bd1e43a commit b0646e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 0 additions & 6 deletions source/lexbor/core/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ lexbor_perf_end(void *perf);
LXB_API double
lexbor_perf_in_sec(void *perf);

LXB_API unsigned long long
lexbor_perf_clock(void);

LXB_API unsigned long long
lexbor_perf_frequency(void);


#endif /* LEXBOR_WITH_PERF */

Expand Down
11 changes: 9 additions & 2 deletions source/lexbor/ports/posix/lexbor/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
#endif


static unsigned long long
lexbor_perf_clock(void);

static unsigned long long
lexbor_perf_frequency(void);


typedef struct lexbor_perf {
unsigned long long start;
unsigned long long end;
Expand Down Expand Up @@ -79,7 +86,7 @@ lexbor_perf_in_sec(void *perf)
return 0.0f;
}

unsigned long long
static unsigned long long
lexbor_perf_clock(void)
{
unsigned long long x;
Expand All @@ -100,7 +107,7 @@ lexbor_perf_clock(void)
return x;
}

unsigned long long
static unsigned long long
lexbor_perf_frequency(void)
{
unsigned long long freq = 0;
Expand Down

0 comments on commit b0646e6

Please sign in to comment.