I am working on a c++ program, It basically copys file into another file. I current have the program outputting how many mb it has done and the pecentage of the operation (i.e 5mb out of 50mb 10% complete)

i would also like to add an estimated remaining time and elapsed time if possible. Therefore the output would like like:-

5MB out of 50MB 10% Complete Estimated time remaining 2:21 mins. Total time elapsed 1 min

Any thoughts off how i can do this, please let me know