0

So basically I need to create a program where I get my system time, wait a few minutes, get a second system time, then calculate the difference between the two time periods in hours and minutes, hopefully all in one function.

The question is, i know how to get the system time using the ctime header, but how can i calculate the differences?

Ajaz
  • 21
  • 3
  • 2
    You probably want to use the Standard C++ [**chrono**](https://en.cppreference.com/w/cpp/chrono) date time utilities. – Eljay Mar 05 '22 at 12:36

0 Answers0