]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
*** empty log message ***
authorNiels Möller <nisse@lysator.liu.se>
Thu, 10 Feb 2011 19:43:40 +0000 (20:43 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 10 Feb 2011 19:43:40 +0000 (20:43 +0100)
Rev: nettle/ChangeLog:1.148

ChangeLog

index 93943e21ec3f68a65c1f5e8cd62be18a6af0bd8b..26e6e3b13f8bf1a6a7591fd1d631cc11426829f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,15 @@
 2011-02-10  Niels Möller  <nisse@lysator.liu.se>
+       
+       * examples/nettle-benchmark.c (cgt_works_p): New function.
+       (cgt_time_start): Likewise.
+       (cgt_time_end): Likewise.
+       (clock_time_start): Likewise.
+       (clock_time_end): Likewise.
+       (time_function): Read clock via function pointers time_start and
+       time_end, so we can select method at runtime.
+       (xalloc): Use die function.
+       (main): Choose timing function. If available, try clock_gettime,
+       and fall back to clock if it doesn't exist.
 
        * examples/nettle-benchmark.c (die): New function.
        (TIME_END, TIME_START): Check return value from clock_gettime.