Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94708

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

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

      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 Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: