I did a search and found nothing. I could only find the C way of doing it. Unfortunately, i program C++, so my question is how do i get my program to get the 'system' time and put it into a variable for use? Thank you for your time, i apprecciate it!
well, i managed to get a timer displaying the seconds, minutes or hours (minutes and hours require you to divide the seconds by 60, and 60 again for hours) from some day at midnight in 1970 or whatever... I cant figure out how to get it to show me the current time though. Doesnt matter, it's still helpful for timer operations. I would however like to timestamp my data and such...
Catfish, that's the reason I use boost.date_time for serious jobs, boost's time points and durations can be simply serialized with operator>>. To serialize chrono's time points and durations, you need the non-standard chrono_io library or equivalent.