diff options
| author | Pieter Wuille <[email protected]> | 2015-10-28 02:25:45 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-10-28 02:30:31 +0100 |
| commit | 4764f5db9d2c68e517fe2ba1d67dde39987a525c (patch) | |
| tree | 7b4ab6474a2043d0f10ee10f5429580534342697 /src/bench | |
| parent | Merge pull request #6776 (diff) | |
| parent | [Trivial] ensure minimal header conventions (diff) | |
| download | discoin-4764f5db9d2c68e517fe2ba1d67dde39987a525c.tar.xz discoin-4764f5db9d2c68e517fe2ba1d67dde39987a525c.zip | |
Merge pull request #6892
214de7e [Trivial] ensure minimal header conventions (Philip Kaufmann)
Diffstat (limited to 'src/bench')
| -rw-r--r-- | src/bench/bench.cpp | 2 | ||||
| -rw-r--r-- | src/bench/bench.h | 23 |
2 files changed, 14 insertions, 11 deletions
diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index 89c3b0cc2..6ee3cdc27 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -1,7 +1,9 @@ // Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. + #include "bench.h" + #include <iostream> #include <sys/time.h> diff --git a/src/bench/bench.h b/src/bench/bench.h index bf591a2be..5ce13c642 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -1,8 +1,16 @@ // Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#ifndef BITCOIN_BENCH_H -#define BITCOIN_BENCH_H + +#ifndef BITCOIN_BENCH_BENCH_H +#define BITCOIN_BENCH_BENCH_H + +#include <map> +#include <string> + +#include <boost/function.hpp> +#include <boost/preprocessor/cat.hpp> +#include <boost/preprocessor/stringize.hpp> // Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark // framework (see https://github.com/google/benchmark) @@ -25,14 +33,7 @@ static void CODE_TO_TIME(benchmark::State& state) BENCHMARK(CODE_TO_TIME); */ - - -#include <boost/function.hpp> -#include <boost/preprocessor/cat.hpp> -#include <boost/preprocessor/stringize.hpp> -#include <map> -#include <string> - + namespace benchmark { class State { @@ -68,4 +69,4 @@ namespace benchmark { #define BENCHMARK(n) \ benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n); -#endif // BITCOIN_BENCH_H +#endif // BITCOIN_BENCH_BENCH_H |