Added macro to allow switch to thread cpu time