26 #include "private/lv_time_system.hpp"
27 #include "lv_common.h"
42 return TimeSystem::now ();
47 TimeSystem::usleep (usecs);
62 : m_impl {
new Impl (*rhs.m_impl)}
68 : m_impl {std::move (rhs.m_impl)}
75 *m_impl = *rhs.m_impl;
81 m_impl.swap (rhs.m_impl);
87 m_impl->start = m_impl->end =
Time ();
88 m_impl->active =
false;
93 return m_impl->active;
98 m_impl->start = Time::now ();
99 m_impl->active =
true;
104 m_impl->end = Time::now ();
105 m_impl->active =
false;
108 Time Timer::get_start_time ()
const
110 return m_impl->start;
113 Time Timer::get_end_time ()
const
121 return Time::now () - m_impl->start;
123 return m_impl->end - m_impl->start;
126 bool Timer::is_past (
Time const& age)
const