35 lines
933 B
C
35 lines
933 B
C
|
/*****************************************************************************
|
|||
|
* @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
|
|||
|
|