updated ping measure

added user function hook to the ping measurement