我已经实现了计时器功能来查找我的任务在 windows 和 linux 中的性能。但是 linux 实现在 Vxworks PPC 750 板上不起作用。gettimeofday
在 Vxworks 中不可用。
t1 = vxworks_start_timer(); //How to implement ?
my_task();
t2 = vxworks_stop_timer(); //How to implement ?
elapsedtime = t2-t1;
如何在 Vxworks 中实现这个计时器来计算任务的经过时间。