vxWorks 新手试验程序
学习Tony论坛里面的几个小程序
学习测试一个程序运行的时间
#include "vxWorks.h"
#include "timexLib.h"
#include "stdio.h"
#define ITERATIONS 200
int printit(void)
{
int i;
for(i=0;i<ITERATIONS;i++)
{
logMsg("Hello, I am printit(task %d) and i=%d.\n",taskIdSelf(),i,0,0,0,0);
}
return 0;
char *str1;
}
void s1_time()
{
FUNCPTR function_ptr=printit;
timex(function_ptr,0,0,0,0,0,0,0,0);
}
浙公网安备 33010602011771号