[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - nanoSleep (Repost)
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Jun 4 13:39:38 EDT 2009
I'm writing a native call to nanoSleep.
As we have talked over IRC, I'm measuring the precision, and the weight of JNI calls.
I have made a bunch of tests:
I'm still editing this post.... I will resubmit it when I'm done...
My conclusion is that it is close enough for 20K.
Follows a table:
Time IntervalNumber Of LoopsTime Taken
01,000,00017 milliseconds
1000 nanosecond1,000,0003856 milliseconds
20 K nanosecond1,000,00023312 milliseconds
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235453#4235453
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235453
More information about the jboss-dev-forums
mailing list