Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20224

Deprecate milliseconds-based input from StopWatch

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.4.0
    • camel-core
    • None
    • Unknown

    Description

      Quoting rhuanrocha on CAMEL-19734:

      "... The constructor StopWatch(long timeMillis) can induce the developer to use it with the System.currentTimeMillis [Ex.: StopWatch(System.currentTimeMillis())] and generate a side effect. I think the better approach is to redefine the StopWatch to work just with nanoTime, and remove the timeMillis ..."

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: