]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/chrono/stopwatches/include/boost/chrono/stopwatches/collectors/no_memory.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / chrono / stopwatches / include / boost / chrono / stopwatches / collectors / no_memory.hpp
CommitLineData
7c673cae
FG
1// boost/chrono/stopwatches/collectors/no_memory.hpp
2// Copyright 2011 Vicente J. Botet Escriba
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt or
5// copy at http://www.boost.org/LICENSE_1_0.txt)
6// See http://www.boost.org/libs/chrono/stopwatches for documentation.
7
8#ifndef BOOST_CHRONO_STOPWATCHES_MEMORIES_NO_MEMORY_HPP
9#define BOOST_CHRONO_STOPWATCHES_MEMORIES_NO_MEMORY_HPP
10
11
12namespace boost
13{
14 namespace chrono
15 {
16
17 template<typename Duration>
18 struct no_memory
19 {
20 typedef Duration duration;
21
22 duration elapsed() const { return duration::zero(); }
23 duration last() const { return duration::zero(); }
24 void store(duration const& ) {}
25 void reset() {}
26
27 };
28
29
30 } // namespace chrono
31} // namespace boost
32
33
34#endif
35
36