I'd rather return raw ping-times and do conversion on the client-side as it is both memory-consuming and inaccurate as sonic speed is not a constant but depends on the media that is being messured. Even for air it's not a constant but depends on temperature, humidity and pressure.