Module todo_lib::timer

source ·

Functions§

  • Returns true if a given task is active - its timer is running
  • Returns the time spent on a given task
  • Make the todo active - start its timer. Attribute tmr is set to the current time in seconds
  • Stops the todo’s timer and updates the spent time. Attribute tmr gets value ‘off’