Thanks in advance
Kim
Try codes listed below, you may need to change the MACRO definition
according to your hardware.
#define TIMEBASE_HZ 16666667
#define TIMEBASE_PERIOD (1.0 / TIMEBASE_HZ)
double double_time(void)
{
UINT32 tbu, tbl;
vxTimeBaseGet(&tbu, &tbl); /* Get 64-bit ticks value */
return (tbu * 4294967296.0 + tbl) * TIMEBASE_PERIOD;
}
int TestCode()
{
double ts,te,tu;
ts =double_time();
...
Your_Operations();
...
te =double_time();
tu =(te -ts)*1.0e6;
}
HTH,
ellin
Speaking only for myself,
Joe Durusau
Mike
"Kim, Jeong-Hwan" <KimJeo...@lge.com> wrote in message
news:_Vxp7.50890$2k2.2...@news.bora.net...