Change all ping times to std::chrono types
Summary:
Partial backport of core#21015:
https://github.com/bitcoin/bitcoin/pull/21015/commits/4d98b401fbd821700f7a792b0a4cb52c9b71bc9f
Depends on D10902.
Ref T1696.
Test Plan:
ninja all check-all
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Maniphest Tasks: T1696
Differential Revision: https://reviews.bitcoinabc.org/D10903