1 Star 0 Fork 0

vsf-linux / xfel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
progress.h 421 Bytes
一键复制 编辑 原始数据 按行查看 历史
xboot 提交于 2021-08-06 11:54 . [progress]update progress
#ifndef __PROGRESS_H__
#define __PROGRESS_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <x.h>
struct progress_t {
uint64_t total;
uint64_t done;
double start;
};
void progress_start(struct progress_t * p, uint64_t total);
void progress_update(struct progress_t * p, uint64_t bytes);
void progress_stop(struct progress_t * p);
#ifdef __cplusplus
}
#endif
#endif /* __PROGRESS_H__ */
1
https://gitee.com/vsf-linux/xfel.git
git@gitee.com:vsf-linux/xfel.git
vsf-linux
xfel
xfel
master

搜索帮助