im new to c++. im trying to create a function to get the systemtime every 1 minute and store it in a variable. im able to display the time using the time.h file. the problem is i dont know how to call the function every 1 minute and assign it to the variable and display the time. any suggestions will be of immense help. im using unix (NOT WINDOWS).
vishy_85
0
Newbie Poster
Recommended Answers
Jump to PostWell if you are using time.h which should be ctime in C++, then you can simple calculate when the next time a minute has passed so says its currently 12:31 then you can add 1 to that and check to see if the systemtime matches or is greater than it, …
All 4 Replies
Freaky_Chris
299
Master Poster
vishy_85
0
Newbie Poster
Freaky_Chris
299
Master Poster
siddhant3s
1,429
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.