updated ping measure

added hook for user function that gets called every time a measurement
finishes