aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/hres_timer
Commit message (Collapse)AuthorAgeFilesLines
* Give everything setting a feature test macro in build.h a version codelloyd2013-11-281-1/+1
| | | | | | so application code can check for the specific API it expects without having to keep track of what versions APIs x,y,z changed. Arbitrarily set all current API versions to 20131128.
* Add more possible clock typeslloyd2013-11-081-0/+12
|
* We do need librt herelloyd2013-08-141-0/+4
|
* Add a constant to make it more obvious that the clock pollinglloyd2013-04-191-8/+10
| | | | is not considered as contributing entropy to a rng poll.
* propagate from branch 'net.randombit.botan' (head ↵lloyd2011-12-182-1/+39
|\ | | | | | | | | | | 39f53266912f33dc48e942b1b865ddcd6af66d8d) to branch 'net.randombit.botan.cxx11' (head 0bf26cec09f71e75c547b4ec53365748c6d80d86)
| * Poll clock_gettime in High_Resolution_Timestamp::poll with whateverlloyd2011-11-112-1/+39
| | | | | | | | clock types we know about that have macros defined for them.
* | propagate from branch 'net.randombit.botan' (head ↵lloyd2011-06-131-4/+2
|\ \ | |/ |/| | | | | | | 150bd11dd8090559ee1e83394b8283bf93a018de) to branch 'net.randombit.botan.c++0x' (head 7480693bb3f1e8a4e039a3e7ba3d9a7007f9730e)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2011-03-081-1/+1
| |\ | | | | | | | | | | | | | | | dd068808e5bf87c982765a8bcc314996053a5bdd) to branch 'net.randombit.botan.c++0x' (head 34696d52a8148d64f7021b3e193fc56f051b9dd2)
| * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-131-4/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | 2898d79f992f27a328a3e41d34b46eb1052da0de) to branch 'net.randombit.botan.c++0x' (head 6cba76268fd69a73195760c021b7f881b8a6552c)
| | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-06-171-2/+2
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 294e2082ce9231d6165276e2f2a4153a0116aca3) to branch 'net.randombit.botan.c++0x' (head 0b695fad10f924601e07b009fcd781191fafcb28)
| | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-211-4/+2
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12382647ef0a28fcb11c824c77b670cc88a4f721) to branch 'net.randombit.botan.c++0x' (head b586a3286d2c4d547ad3add5af9df1455bf4b87b)
| | | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-241-1/+1
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 367d157c1221a162f5b4098492944a509ef6d019) to branch 'net.randombit.botan.c++0x' (head 1b9e8c4e92663f30b7d57b0fd8f57eb13cfce155)
| | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-163-2/+10
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 744dccf92270cf16b80b50ee2759424c9866b256) to branch 'net.randombit.botan.c++0x' (head 2aa1acac1d05e8ea9991fe39015b1db9abc3b24e)
| | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-081-4/+2
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 142a9359ba02d5dfcf3f2c9f99902f82ab41724e) to branch 'net.randombit.botan.c++0x' (head 390a9abce0eb6ee24eeb3cd243b6dcaaa8944ad0)
| | | | * | | | | Instead of checking for Windows generically before using ↵lloyd2009-12-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QueryPerformanceCounter, check a feature macro named BOTAN_OS_HAS_QUERY_PERF_COUNTER, and set the same via configure.py for Windows builds.
| | | | * | | | | Most files including <botan/time.h> actually just needed <chrono>lloyd2009-12-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up implementation of calendar_value() a bit
* | | | | | | | | These should be precisely 32 bitslloyd2011-04-041-2/+2
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Tick to 1.9.15-devlloyd2011-03-071-1/+1
|/ / / / / / /
* | | | | | / Use size_t instead of u32bit in entropy and rnglloyd2010-10-121-2/+2
| |_|_|_|_|/ |/| | | | |
* | | | | | More Doxygen updates/fixeslloyd2010-06-151-2/+2
|/ / / / /
* | | | | Oops, it's TARGET_CPU_IS_XXX_FAMILY, not TARGET_IS_XXX_FAMILY.lloyd2009-12-301-2/+2
| | | | | | | | | | | | | | | | | | | | Also, fix AltiVec detection on Linux and NetBSD for most G4s.
* | | | | Use IS_XXX_FAMILY macros where usefullloyd2009-12-301-2/+2
| |_|_|/ |/| | |
* | | | Fix compilation on Win32lloyd2009-12-231-1/+1
| |_|/ |/| |
* | | Make many more headers internal-only.lloyd2009-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
* | | Full working amalgamation build, plus internal-only headers concept.lloyd2009-12-162-1/+9
|/ /
* / Load hres_timer on any compiler or arch; macro feature detection takes carelloyd2009-12-011-27/+0
|/ | | | of the rest. In the worst case, it compiles down to an empty poll
* Consolidate the non-canonical epoch timers, like cpuid and Win32'slloyd2009-12-013-0/+125
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.