Topic
  • 2 replies
  • Latest Post - ‏2007-11-19T18:16:56Z by SystemAdmin
SystemAdmin
SystemAdmin
235 Posts

Pinned topic Access to CPU Clocks

‏2007-10-12T07:18:59Z |
How can we get access to CPU clocks in java to measure time irrespective of the time dispalyed at the system??? Is it possible or not???
Updated on 2007-11-19T18:16:56Z at 2007-11-19T18:16:56Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    235 Posts

    Re: Access to CPU Clocks

    ‏2007-10-14T18:25:45Z  
    The CPU clock is still a clock that is run on a cell and can be set in the BIOS. There is no guarantee that it would be accurate or even close.
  • SystemAdmin
    SystemAdmin
    235 Posts

    Re: Access to CPU Clocks

    ‏2007-11-19T18:16:56Z  
    Hi!

    *I*'ve seen your message in several forums now and I was wondering if what you are wanting is the time in milliseconds (ms) so that simple subtraction gives a duration in ms. If so, take a look at System.currentTimeMillis().