hi people I have a project that requires me to use time.h in animation. can anyone show me a simple code of animation using time.h???
Max Hydes
0
Newbie Poster
Recommended Answers
Jump to PostBasically all you need the time.h library for is slowing things down enough to produce the effect of animation:
#include <iostream> #include <ctime> void pause_execution(double seconds) { std::time_t start = std::time(0); while (std::difftime(std::time(0), start) < seconds) ; } int main() { std::cout << "Paused" << std::flush; for …
Jump to PostI doubt she's going to do everything for you. Unless she's in a really really really good mood.
All 7 Replies
Narue
5,707
Bad Cop
Team Colleague
Max Hydes
0
Newbie Poster
frogboy77
73
Posting Pro in Training
Narue
5,707
Bad Cop
Team Colleague
Max Hydes
0
Newbie Poster
ratatat
0
Newbie Poster
Max Hydes
0
Newbie Poster
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.