Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
porg opened this issue May 6, 2023 · 0 comments

Comments

@porg
Copy link

porg commented May 6, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant