View Single Post
  #2 (permalink)  
Old 10-30-2007, 11:15 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Windows does not count/report every milliseconds to you. There is a granularity in reporting which depends on the underlying OS.

If it reports the same number, that means your procedure does not run long enough to capture the difference. You can try your code with a dummy for loop which took more time..

And here is an article that will tell you more details about this problem:

Bring Java's System.currentTimeMillis() Back into the Fold for Transaction Monitoring
Reply With Quote