📄 1timex.c
字号:
#include "vxworks.h"
#include "timexLib.h"
/*#include "taskLib.h"*/
#include "stdio.h"
#define ITERATION 200
void printit(void);
void timing() /*function to perform the timing*/
{
FUNCPTR function_ptr=printit;
timex(function_ptr,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);/*timing the printit */
/*so print the time = milliseconds*/
}
void printit()
{
int i;
for (i=0;i<ITERATION;i++)
{
printf("hello, I am task %d ,and is i= %d\n ",taskIdSelf(),i);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -