This PR is a follow-up to #23801. This PR aims to make the following changes to all the time variables in net_processing.cpp wherever possible.
- Convert all time variables to std::chrono.
- Use chorno::literalswherever possible.
- Use autokeywords wherever possible.
- Use var{val}convention of initialization.
This PR also minimizes the number of times, serialization of time count_seconds(..) occurs.