unit test or ctimemeasure #TODO make ctimemeasure async