Dear friends,

i am using the following function to obtain the CPU timestamp:

typedef unsigned long long        xadk64_t;

void
apx_rdtsc(xadk64_t * const t)
{
       __asm__ __volatile__ (".byte 0xf;.byte 0x31": "=A"(*t));
}

I am using a single processor system. My i was thinking on using
OpenBSD on a dual processor and notebook.

I wonder if my previous approach could fail on a SMP system? More
over, in a notebook whose CPU performance varies, should be afraid of
using that function?

If yes for any of those questions, which approach should i take in
order to obtain the same results?

Thanks in advance.

Best regards.

Reply via email to