Browse Source

update

disinfection_machine
zhaohe 1 year ago
parent
commit
55b893fa51
  1. 2
      src/iflytop/components/ziconv.hpp
  2. 8
      src/iflytop/core/components/timeutils.hpp

2
src/iflytop/components/ziconv.hpp

@ -17,6 +17,8 @@ class ZIconv {
/* data */
public:
static string utf8_to_gb2312(const string& utf8_str);
static string toGB2312(const string& utf8_str) { return utf8_to_gb2312(utf8_str); }
static string noChange(const string& utf8_str) { return utf8_str; }
};
} // namespace iflytop

8
src/iflytop/core/components/timeutils.hpp

@ -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
Loading…
Cancel
Save