Added inline function timing helper