#7 Enable for high resolution timer

closed
nobody
None
5
2006-07-17
2006-03-17
Ingo Richter
No

Please provide a possibility to use some other timer
implementation instead of System.currentTimeMillis().
In our project we use jamon but we need to patch it
to get more accurate timing results (this is when the
measured value is 0!).

Discussion

  • Steve Souza
    Steve Souza
    2006-03-18

    Logged In: YES
    user_id=828052

    With the new add capability you can track time in whatever
    units you prefer.
    MonitorFactory.add("methodTimeInNano","ns.",100);

    However, I find this to be of limited value in most if not
    all java apps as if something is in the nanosecond range it
    is rarely important from a performance perspective. Also,
    even though the granularity of the timer is in ms. the
    average value can be sub ms., and so offer more accuracy.

     
  • Steve Souza
    Steve Souza
    2006-07-17

    • status: open --> closed