timer.h
来自「VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统"」· C头文件 代码 · 共 53 行
H
53 行
#ifndef _DECORE_TIMER_H
#define _DECORE_TIMER_H
#if (defined(LINUX) && defined(PROFILING))
#include "portab.h"
struct timer
{
int64_t dct_times;
int64_t vld_times;
int64_t iquant_times;
int64_t edge_times;
int64_t display_times;
int64_t recon_times;
int64_t transfer_times;
int64_t block_times;
int64_t current;
};
extern struct timer tim;
#ifdef __cplusplus
extern "C" {
#endif
extern void start_timer();
extern void stop_dct_timer();
extern void stop_vld_timer();
extern void stop_iquant_timer();
extern void stop_edge_timer();
extern void stop_display_timer();
extern void stop_recon_timer();
extern void stop_transfer_timer();
extern void stop_block_timer();
extern void clear_timer();
extern void write_timer();
#ifdef __cplusplus
};
#endif
#else
static __inline void start_timer(){}
static __inline void stop_dct_timer(){}
static __inline void stop_vld_timer(){}
static __inline void stop_iquant_timer(){}
static __inline void stop_edge_timer(){}
static __inline void stop_display_timer(){}
static __inline void stop_recon_timer(){}
static __inline void stop_block_timer(){}
static __inline void clear_timer(){}
static __inline void write_timer(){}
#endif /* LINUX */
#endif /* _DECORE_TIMER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?