Refactor Time and TimeSpan for modern C++ and add includes
- Replace typedefs with using and long long with std::int64_t
- Use defaulted spaceship operator for comparisons
- Make constants constexpr and use std::numeric_limits for max()
- Add missing standard and Gaudi includes
- Minor code cleanups and type improvements
Co-authored-by: @graven