|
|
@ -70,8 +70,8 @@ class T_TimeUtils { |
|
|
|
|
|
|
|
typedef T_TimeUtils<system_clock> tu_sys; // not use in future
|
|
|
|
typedef T_TimeUtils<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; // not use in future
|
|
|
|
typedef time_point<steady_clock> tp_steady; // not use in future
|
|
|
|
|
|
|
|
// new api name
|
|
|
|
typedef T_TimeUtils<system_clock> zsystem_clock; |
|
|
@ -79,5 +79,9 @@ typedef T_TimeUtils<steady_clock> zsteady_clock; |
|
|
|
|
|
|
|
typedef time_point<system_clock> zsystem_tp; |
|
|
|
typedef time_point<steady_clock> zsteady_tp; |
|
|
|
|
|
|
|
static inline int64_t zsys_get_ticket() { return zsystem_clock().getms(); } |
|
|
|
static inline int64_t zsys_haspassedms(int64_t old) { return zsystem_clock().elapsedTimeMs(old); } |
|
|
|
|
|
|
|
}; // namespace core
|
|
|
|
} // namespace iflytop
|