timer.c
来自「傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。」· C语言 代码 · 共 26 行
C
26 行
#include "timer.h"
#include <assert.h>
FILE * timerFP = stdout;
int timerCount = 0;
int timerIsStarted = 0;
double time_Master = 0.0;
static tsc_type tsc_Master;
void Timer_Start(void)
{
assert( ! timerIsStarted);
timerIsStarted = 1;
readTSC(tsc_Master);
}
void Timer_Stop(void)
{
tsc_type tsc_Master2;
readTSC(tsc_Master2);
assert(timerIsStarted);
timerIsStarted = 0;
time_Master += diffTSC(tsc_Master,tsc_Master2);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?