aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/benchmark.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation of examples; benchmarking and RNG changes mostlylloyd2010-10-121-1/+1
|
* Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-0/+6
| | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* Consolidate the non-canonical epoch timers, like cpuid and Win32'slloyd2009-12-011-2/+1
| | | | | | | | | | | | | | QueryPerformanceCounter, into an entropy source hres_timer. Its results, if any, do not count as contributing entropy to the poll. Convert the other (monotonic/fixed epoch) timers to a single function get_nanoseconds_clock(), living in time.h, which statically chooses the 'best' timer type (clock_gettime, gettimeofday, std::clock, in that order depending on what is available). Add feature test macros for clock_gettime and gettimeofday. Remove the Timer class and timer.h. Remove the Timer& argument to the algorithm benchmark function.
* Switch benchmark example command line arg from ms to secondslloyd2008-11-221-2/+2
|
* Add an example of benchmark.hlloyd2008-11-211-0/+41