measure cpu time