1 // boost/chrono/stopwatches/collectors/last_lap.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.
8 #ifndef BOOST_CHRONO_STOPWATCHES_MEMORIES_LAST_LAP_HPP
9 #define BOOST_CHRONO_STOPWATCHES_MEMORIES_LAST_LAP_HPP
17 template<typename Duration>
20 typedef Duration duration;
22 void store(duration const& d)
28 last_ = duration::zero();
30 duration last() const { return last_; }
31 duration elapsed() const { return duration::zero(); }