Browse Source

update time_utils

disinfection_machine
zhaohe 2 years ago
parent
commit
e4c17891a5
  1. 13
      core/components/time_util.hpp

13
core/components/time_util.hpp

@ -68,11 +68,16 @@ class T_TimeUtil {
int64_t countdownTimeNs(time_point<T> endtime) { return dToNs(endtime - T::now()); }
};
typedef T_TimeUtil<system_clock> tu_sys;
typedef T_TimeUtil<steady_clock> tu_steady;
typedef T_TimeUtil<system_clock> tu_sys; // not use in future
typedef T_TimeUtil<steady_clock> tu_steady; // not use in future
typedef time_point<system_clock> tp_sys; // not use in future
typedef time_point<steady_clock> tp_steady; // not use in future
typedef time_point<system_clock> tp_sys;
typedef time_point<steady_clock> tp_steady;
// new api name
typedef T_TimeUtil<system_clock> zsystem_clock;
typedef T_TimeUtil<steady_clock> zsteady_clock;
typedef time_point<system_clock> zsystem_tp;
typedef time_point<steady_clock> zsteady_tp;
}; // namespace core
} // namespace iflytop
Loading…
Cancel
Save