i was wondering if in C you could create clock that counts up and store the time at certain points. if you can, could you point me in the right direction with a tutorial?
Thank you
i was wondering if in C you could create clock that counts up and store the time at certain points. if you can, could you point me in the right direction with a tutorial?
Thank you
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
This was a recent thread where I posted a clock program. It even prints the clock prettily too! Saving the time at regular intervals is an exercise for you, but it shouldn't be difficult at all with the source base I posted in that thread to start from.
My best code is written with the delete key.