Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-677

use time.monotonic instead of time.time

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      In many places we measure the time that something takes to complete, for example https://github.com/metabrainz/listenbrainz-server/blob/7a9db9b435f0b685972484678f917b78dccabb23/listenbrainz_spark/hdfs/__init__.py
      when counting elapsed time we should use time.monotonic() instead, as it doesn't suffer from effects such as the time shifting due to the system clock changing.

            AbhinavOhri Abhinav Ohri
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package