Use new timer API and use usec timer instead of cycles timer