MACRO to measure elapsed time in kernel