aboutsummaryrefslogtreecommitdiffstats
path: root/checks/timer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-211-2/+3
|\ | | | | | | | | | | 12382647ef0a28fcb11c824c77b670cc88a4f721) to branch 'net.randombit.botan.c++0x' (head b586a3286d2c4d547ad3add5af9df1455bf4b87b)
| * Fix for removal of Default_Benchmark_Timerlloyd2009-10-131-3/+3
| |
* | 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-3/+2
|/ | | | | | | | | | | | | | 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.
* Modify the self test program to use the builtin runtime benchmarking goop.lloyd2009-09-241-0/+7
| | | | | | | | | Features dropped: RNG benchmarking, the --bench-type option. New feature: Anything the library understands can be benchmarked using --bench-algo. Use 3DES and Serpent for mode benchmarking along with AES-128.
* Avoid integer overflows in the benchmark timer code. This would lead tolloyd2008-10-221-3/+8
| | | | bad results, especially noticable with fast algorithms and long test times.
* Timer tried to guess if it should use seconds or ms, but it always chooselloyd2008-10-171-13/+4
| | | | | | | the wrong one in some situation or another. Just print milliseconds no matter what. Also it's easier to read/compare if everything is in the same unit (obv)
* Explicit cast from double to int using static_castlloyd2008-09-151-1/+1
|
* Tweak timer outputlloyd2008-09-071-2/+2
|
* Choice of clock_gettime, gettimeofday, times, and clock for benchmark timingslloyd2008-09-051-8/+0
|
* Use the Timer class for all benchmarkinglloyd2008-09-051-1/+2
|
* Inline some methods of Timerlloyd2008-08-311-26/+0
| | | | Randomly generate the RW keys as well, removing all need for the keys/ dir
* Add a simple timer classlloyd2008-08-311-0/+88