overflow of clock_t with clock(), timing longer processes
hello hackers first a hi to everyone. just signed today as a new member to this mailinglist. well.. i've got a problem and hope someone can help me. i run a c++ program (mostly on a sunblade 100 or a sunblade 1000) about genetic algorithms which takes quite some time to solve for certain problems (up to 100 hours) because its important to me to compare different jobs i need to measure the elapsed cpu time used for the particular jobs. well, i could use the standart system time, but because my running job is not always the only one i dont get really worthy results. so i used the std::clock(). but measuring 1/1000000 of a seconds with that and with the clock_t beeing a long int of course this results in a overflow after around 36 minutes. thought to find something about that in the boost library but timer.hpp just gets also de maximum elapsed time out.. doesnt really help is there some way this can be achieved? would be really neat to get an answer from anyone soon. thanks uf
participants (1)
-
gigu74