Skip to content

Aligned delay mode: 0, delay*1, delay*2, … as in e.g. 0, 15, 30, 45, 0, … #112

@porg

Description

@porg

Current Delay Feature

  • -d delay is cool if you want increments other than the default 1sec.

Only downside

  • If you want to achieve e.g. increments in 5secs that are nicely "aligned" on the 5 number series, e.g. 22:17:00, 22:17:05, 22:17:10, … you have to achieve this by starting at the right time. Not so easy to get that right manually.
  • If you start it regardless of that it simply takes the current time and increments, so e.g. 22:17:02, 22:17:07, 22:17:12.

I propose an "aligned delay" mode

  • It creates a number series: 0, delay, delay*2, delay*3, … until number generation hits 60.
  • When you start tty-clock into that "aligned delay mode" and is yet "unaligned" (e.g. 22:17:02) the clock instead starts with 22:17:0_ with the _ part denoting that it waits for the next "clean entry point".
  • As soon as it reaches any number in the desired number series, it starts there, so e.g. 22:17:05 and from then on "runs aligned".

Would love to see that feature!

Flag ideally would be -D delay

  • As a modified version of -d
  • But sadly -D is already takes for "Hide Date".
  • Maybe you want to break backwards compatibility.
  • Maybe an extra "aligned" flag. But -a is also already taken. So maybe -A. Or something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions