#include<std.h>
#include<clk.h>
#include<log.h>
LgUns ticks,ticks_now=0,ticks_old=0;
extern LOG_Obj LOG_msg;
void my_clk()
{
ticks_old=ticks_now;
ticks_now=CLK_gethtime();
ticks=ticks_now-ticks_old;
LOG_printf(&LOG_msg,"The current tick count %d\n",ticks);
}
void main()
{
ticks=CLK_getprd();
LOG_printf(&LOG_msg,"The current tick count %d\n",ticks);
}
clk.rar_DSK6455
版权申诉
50 浏览量
2022-09-20
19:12:58
上传
评论
收藏 133KB RAR 举报
小波思基
- 粉丝: 70
- 资源: 1万+