Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1532

Pass Time object instead of numeric timestamp in Timer methods

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • REEF-Common

    Description

      Methods in Timer interface, e.g. Timer.isReady() accept long timestamp, but in all contexts where the Timer implementations are used, we operate with Time objects. That leads to awkward chain calls, e.g.

      timer.getDuration(event.getTimeStamp())
      

      instead of shorter and more readable and type safe

      timer.getDuration(event)
      

      We propose to deprecate methods that take long timestamp in release 0.16 in favor of parameters of type Time and remove old methods in teh subsequent release.

      Attachments

        Issue Links

          Activity

            People

              motus Sergiy Matusevych
              motus Sergiy Matusevych

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment