Ho un timepoint partenza in millisecondi in questo modo:Aggiungere tempo determinato, di C++ timepoint
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()));
Ora avrò un certo numero di ore che voglio aggiungere o sottrarre al startTimePoint.
int numHours = -5//or 5 etc (Can be a plus or minus number)
Come posso aggiungere questo abount di tempo al startTimePoint originale ??
Oppure, modificare 'system_clock :: time_point' a' steady_clock :: time_point'. –