ems/ems_c/kernel/kit_time2.h

35 lines
933 B
C
Raw Normal View History

2025-05-13 17:49:49 +08:00
/*****************************************************************************
* @copyright 2024-202, . POWER SUPPLY CO., LTD.
* @file xxx.c
* @brief xxxx
* @author xx
* @date 2024/08/30
* @remark
*****************************************************************************/
// 由于BSU模块也有这个文件所以重命名之后BSU独立后会合并
#ifndef __INCLUDE_KIT_TIME_H__
#define __INCLUDE_KIT_TIME_H__
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <sys/time.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <bits/types/struct_timespec.h>
#include <time.h>
uint8_t kit_isTimeout_by_now(struct timeval *lasttime,uint32_t timeout_ms);
uint32_t kit_time_diff_ms(struct timeval nowtime, struct timeval lasttime);
uint64_t get_systicks(struct timeval *tv);
#endif