mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-06 16:10:42 +08:00
添加内存锻炼器代码
This commit is contained in:
15
others/C/memory/include/utils.h
Normal file
15
others/C/memory/include/utils.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
// 字节转换工具:MB转字节
|
||||
size_t mb_to_bytes(size_t mb);
|
||||
|
||||
// 获取当前时间戳(毫秒)
|
||||
long long get_timestamp();
|
||||
|
||||
// 打印调试信息(支持中文)
|
||||
void debug_print(const wchar_t* message);
|
||||
|
||||
#endif // UTILS_H
|
||||
Reference in New Issue
Block a user