uses std::chrono

This commit is contained in:
Jinhao
2019-04-16 03:54:16 +08:00
parent 7de40cdc69
commit f697f4c338
10 changed files with 55 additions and 30 deletions

View File

@@ -86,12 +86,12 @@ namespace nana
timer_.reset();
if (duration_)
{
timer_.interval(static_cast<unsigned>(duration_));
timer_.interval(std::chrono::milliseconds{ duration_ });
timer_.elapse(std::bind(&tip_form::_m_tick_duration, this));
}
else
{
timer_.interval(500);
timer_.interval(std::chrono::milliseconds{ 500 });
timer_.elapse(std::bind(&tip_form::_m_tick, this));
}
timer_.start();