More clearly indicate that ClockSource::Stopwatch::start() is a getter

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      ClockSource::Stopwatch::start() returns the starting time of the stopwatch, but it can easily be confused for a method that actually starts the stopwatch and then returns the starting time (this is what restart() does, besides the return value). We should rename this method to more clearly indicate that it isn't mutating the stopwatch in any way and is merely a getter, e.g. getStartDate().

            Assignee:
            Unassigned
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: