On Fri, Sep 28, 2001 at 12:17:28PM +0200, Richard Levitte - VMS Whacker wrote:
> From: Bodo Moeller <[EMAIL PROTECTED]>
>> If you want elapsed real time ('openssl speed -elapsed'), you need
>> times(), which measures in clock ticks and not in CLOCKS_PER_SEC.
> -elapsed measures clock time (using ftime or gettimeofday, depending
> on what's available). times() gives back the following information:
>
> struct tms {
> clock_t tms_utime; /* user time */
> clock_t tms_stime; /* system time */
> clock_t tms_cutime; /* user time of children */
> clock_t tms_cstime; /* system time of children */
> };
>
> That doesn't give real time, does it?
Note that it's
clock_t times(struct tms *buffer);
where 'buffer' gets the above information (user and system time) and
the return value value is elapsed real time, all measured in clock
ticks.
--
Bodo M�ller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]