Re: Code optimization <LEA Instruction>

From: Ph. Marek (marek@mail.bmlv.gv.at)
Date: Fri Jan 28 2000 - 06:42:07 EST


I'm not sure if the example program does the Right Thing(TM).

It uses alarm 2 times; if I recall correctly, alarm gives an signal after
*AT LEAST* the amount specified.

So - the first call falls between 2 jiffies, and gets possible 1.xx seconds, while
the second comes close enough to a jiffie-jump (recall the just completed alarm?)
to get more or less *exactly* 1 second.

Maybe time should be measured with gettimeofday() or the TSC?

Regards,

Phil

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:20 EST