| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
// Copyright Catch2 Authors |
|
3
|
|
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. |
|
4
|
|
|
|
|
|
|
// (See accompanying file LICENSE_1_0.txt or copy at |
|
5
|
|
|
|
|
|
|
// https://www.boost.org/LICENSE_1_0.txt) |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
// SPDX-License-Identifier: BSL-1.0 |
|
8
|
|
|
|
|
|
|
// Adapted from donated nonius code. |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#ifndef CATCH_TIMING_HPP_INCLUDED |
|
11
|
|
|
|
|
|
|
#define CATCH_TIMING_HPP_INCLUDED |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#include |
|
14
|
|
|
|
|
|
|
#include |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#include |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
namespace Catch { |
|
19
|
|
|
|
|
|
|
namespace Benchmark { |
|
20
|
|
|
|
|
|
|
template |
|
21
|
0
|
|
|
|
|
|
struct Timing { |
|
22
|
|
|
|
|
|
|
Duration elapsed; |
|
23
|
|
|
|
|
|
|
Result result; |
|
24
|
|
|
|
|
|
|
int iterations; |
|
25
|
|
|
|
|
|
|
}; |
|
26
|
|
|
|
|
|
|
template |
|
27
|
|
|
|
|
|
|
using TimingOf = Timing, Detail::CompleteType_t>>; |
|
28
|
|
|
|
|
|
|
} // namespace Benchmark |
|
29
|
|
|
|
|
|
|
} // namespace Catch |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
#endif // CATCH_TIMING_HPP_INCLUDED |