I have a starting point in milliseconds, for example:
using namespace std::chrono; typedef time_point<system_clock, milliseconds> MyTimePoint; MyTimePoint startTimePoint = time_point_cast<MyTimePoint::duration>(system_clock::time_point(steady_clock::now()));
Now I will have a certain number of hours that I want to add or subtract in startTimePoint.
int numHours = -5
How to add this time span to the original startTimePoint?
source share