⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1timex.c

📁 结合三星的4510ARM处理器 和VXworks 操作系统,的几个源程序,有助于开发嵌入式系统和加深了解VXWorks操作系统
💻 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 + -