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

@@ -1,7 +1,7 @@
/*
* A Content View Implementation
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2017-2018 Jinhao(cnjinhao@hotmail.com)
* Copyright(C) 2017-2019 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
@@ -132,7 +132,7 @@ namespace nana {
}
else if (this->drag_view_move && this->drive(arg.pos))
{
tmr.interval(16);
tmr.interval(std::chrono::milliseconds{ 16 });
tmr.start();
}
}