I\'m looking for a way to save the time in a HH::MM::SS fashion in C++. I saw here that they are many solutions and after a little research I opted for time and
time
If you are worried about reentrancy in localtime and gmtime, there is localtime_r and gmtime_r which can handle multiple calls.
localtime
gmtime
localtime_r
gmtime_r
When it comes to formatting the time to your liking, check the function strftime.
strftime