Your test will probably fail no matter what you do. I'd bet you'll
get a similar value if you do
time1=gettime()
syscall()
syscall()
time2=gettime()
where syscall is some sort of syscall that requires little time to
complete ( like nanosleep for 1 nanosecond).
How to improve this sort of depends on what you're trying to do.
-- Throb always without you and the throb always within. --James Joyce, "Ulysses" Brian Perkins bperkins@netspace.org
- 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/