• wise_pancake
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    This timer allows pausing though, so I think you have to store a sequence of timestamps

    • Piafraus@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Does it show the “laps” and their times? If not, I think it can still be implemented by storing just two values - time delta before previous stop and timestamp of previous start/un pause.

      • wise_pancake
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

        It does, those can be a list of timestamps with a lap flag. Pauses can be a pause/resume flag.

        Fairly easy data structure to build.