Please help, I can't find a solution to fit my needs!
I've got 18MB of array I'm doing operations on.. I'm comparing POSIX threads to not-threads on search sort read write etc.
I am trying to obtain timing information for these activities.
Some take < nanoseconds (read, write), some take hours (duplicate search, bubble sort)
I need to get timing info and put it in a std::string.
clock_t end = start - clock() ; // leaves me with accuracy +/- 1 second - not good enough
time_t end, start; time(&start); time(&end); (double diffms = end - start * 1000) / CLOCKS_PER_SEC ; //goes all hex-y on me
I'm wrapping this up into timer.start() and timer.stop(). timer.stop pushes the time taken into a vector of 'timestamps'.
I fear I'm confusing you now.
Please help! Suggestions?