Re: strange behaviour of clock() with DH_generate_key

2007-12-05 Thread Koza
Koza wrote: I try to measure time of generating a key for DH. I have a code alike: startclk = clock(); for (i=0;inoiterDH;i++) DH_generate_key(a); stopclk = clock(); I know the anser now, it was my fault since not DH_generate_key takes a long time but

strange behaviour of clock() with DH_generate_key

2007-12-02 Thread Koza
Hi, I try to measure time of generating a key for DH. I have a code alike: startclk = clock(); for (i=0;inoiterDH;i++) DH_generate_key(a); stopclk = clock(); And for 512 bits I see the time is about 20 seconds but from stopclk-startclk I see around 0.02