#include <time.h>

clock_t start, end;
double elapsed;

start = clock();
... /* Do the work. */
end = clock();
elapsed = ((double) (end - start)) / CLOCKS_PER_SEC;


from 
http://www.informatik.uni-hamburg.de/RZ/software/gnu/libraries/libc_17.html#SEC293

This should be really high rez.

Hope that helps-

Peter J. Milanese





"Volnei Galbino" <[EMAIL PROTECTED]>
04/06/2004 03:09 PM
Please respond to asc28671
 
        To:     " [EMAIL PROTECTED]" <[EMAIL PROTECTED]>
        cc: 
        Subject:        measuring the time used by the query


Hello, 
 
 I am making a work in API C in the area of query optimization. 
 My problem this in measuring the time used by the query.
 I am using difftime(end,start) to evaluate the time, only he is
supplying it fear  in seconds, which, most of the time, it is not
relevant. 
How to do so that the time is supplied in second hundredths, for
example? 
Is there as doing this? 
 
Regards,
 
Volnei Galbino



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to