inline documentation, allow sending custom timeMeasurements, better example