Implemented ping measurement functions.