sched_getcpu

It is 8ns per call