| 44 | |
| 45 | template<typename T> |
| 46 | static T get_diff(const point& start, const point& end) |
| 47 | { |
| 48 | using duration_t = std::chrono::duration<T, time_unit>; |
| 49 | |
| 50 | return std::chrono::duration_cast<duration_t>(end - start).count(); |
| 51 | } |
| 52 | |
| 53 | point _start; |
| 54 | point _snap; |