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

Pass Time object instead of numeric timestamp in Timer methods

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REEF-Common
    • Labels:

      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

              • Assignee:
                motus Sergiy Matusevych
                Reporter:
                motus Sergiy Matusevych
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: