20 lines
444 B
C
20 lines
444 B
C
|
#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
|