File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precision on System current time

 
Leandro Melo
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anyone tell me of what kinda precision we're talking about when using


Suppose, i get a piece of code that takes 1500 milliseconds from a measurement done with the above method.

What can i say for sure about this measurement? For example: between 1600 and 1400 ms, or between 1550 and 1450 ms, etc...

Thanks,
ltcmelo
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends entirely on what the OS provides.
 
John Smith
Ranch Hand
Posts: 2937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To extend a bit EFH's comment, it's about 50ms in Windows 98, 16ms (I think) on WinNT, and 1 ms on Linux. Try this on your system:
 
John Smith
Ranch Hand
Posts: 2937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, I see empty lines in my posted code now. Good job on fixing that UBB bug, Jim Yingst!
 
Leandro Melo
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great!
I tought i could get some good measurments.
My system precision is around 15 ms and the time i'm measuring around 20 :-(
(need to migrate from xp to linux)

Thanks for your help guys,
ltcmelo
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic