emsApplication/applications/emsConfigurer/kutilities.h

20 lines
444 B
C++
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef KUTILITIES_H
#define KUTILITIES_H
#pragma execution_character_set("utf-8")
#include <string>
class Kutilities
{
public:
Kutilities();
//获取当前精确到毫秒的时间戳返回字符串格式YYYY-MM-DD HH:MI:SS.MMM
static std::string get_current_timestamp();
// 函数用于将内存块转换为十六进制字符串
static std::string printHex(const void* data, size_t size);
};
#endif // KUTILITIES_H