Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
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
Chen Yisong
benchmark
Commits
c0755c42
Commit
c0755c42
authored
Mar 26, 2015
by
Eric Fiselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually add new test
parent
725f1f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
walltime_test.cc
test/walltime_test.cc
+24
-0
No files found.
test/walltime_test.cc
0 → 100644
View file @
c0755c42
#include <cstddef>
#include "benchmark/benchmark_api.h"
#include "../src/walltime.h"
void
BM_CPUTimeNow
(
benchmark
::
State
&
state
)
{
while
(
state
.
KeepRunning
())
{
benchmark
::
WallTime
volatile
now
=
benchmark
::
walltime
::
CPUWalltimeNow
();
((
void
)
now
);
}
}
BENCHMARK
(
BM_CPUTimeNow
);
void
BM_ChronoTimeNow
(
benchmark
::
State
&
state
)
{
while
(
state
.
KeepRunning
())
{
benchmark
::
WallTime
volatile
now
=
benchmark
::
walltime
::
ChronoWalltimeNow
();
((
void
)
now
);
}
}
BENCHMARK
(
BM_ChronoTimeNow
);
BENCHMARK_MAIN
()
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