blob: 7c68b6cb0f11b6889c44670574184635d4c3bcf4 (
plain)
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
36
|
// boost/chrono/stopwatches/collectors/no_memory.hpp
// Copyright 2011 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or
// copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/chrono/stopwatches for documentation.
#ifndef BOOST_CHRONO_STOPWATCHES_MEMORIES_NO_MEMORY_HPP
#define BOOST_CHRONO_STOPWATCHES_MEMORIES_NO_MEMORY_HPP
namespace boost
{
namespace chrono
{
template<typename Duration>
struct no_memory
{
typedef Duration duration;
duration elapsed() const { return duration::zero(); }
duration last() const { return duration::zero(); }
void store(duration const& ) {}
void reset() {}
};
} // namespace chrono
} // namespace boost
#endif
|