Am Donnerstag, 16. Januar 2014, 08:11:32 schrieb Peter Waltenberg:

Hi Peter,

>The necessary code for MOST platforms is already in OpenSSL
>
>Look for OPENSSL_rdtsc in the crypto. directory.
>O.K. Not all platforms have this, but Sparc, x86/x86_64, s390, ppc,
>Itanium, apha,PA-RISC , ARM have some variant - admitted, quite a few
>hardware variants don't have a TSC, but that's determinable at runtime
>and you could drop back to gettimeofday() to cover those.

Great, then using these high-res timers should be definitely considered 
for the platforms where available (i.e. most common platforms). For any 
other platform, the gettimeofday can be called.
>
>It's at least "better" than gettimeofday() for this purpose - i.e. most
>of the bits can't be determined from outside the box, it moves faster,
>and it's cheaper  to read.

Agreed.

Ciao
Stephan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to