All Projects → drgrib → Ttimer

drgrib / Ttimer

Licence: mit
Terminal countdown timer, written in Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Ttimer

Timerview
一个解耦良好的计时控件,可自由扩展。
Stars: ✭ 387 (+821.43%)
Mutual labels:  timer
Termdown
Countdown timer and stopwatch in your terminal
Stars: ✭ 749 (+1683.33%)
Mutual labels:  timer
Appserver
A multithreaded application server for PHP, written in PHP.
Stars: ✭ 930 (+2114.29%)
Mutual labels:  timer
Mob
Tool for swift git handover.
Stars: ✭ 418 (+895.24%)
Mutual labels:  timer
Easytimer.js
Easy to use Timer/Stopwatch/Countdown library compatible with AMD, ES6 and Typescript
Stars: ✭ 562 (+1238.1%)
Mutual labels:  timer
Rulerview
卷尺系列控件,包含:普通卷尺(如:体重)、金额尺、时间尺
Stars: ✭ 816 (+1842.86%)
Mutual labels:  timer
Swoole Src
🚀 Coroutine-based concurrency library for PHP
Stars: ✭ 17,175 (+40792.86%)
Mutual labels:  timer
Prince
Implementing PopRouting
Stars: ✭ 11 (-73.81%)
Mutual labels:  timer
Countdownlabel
Simple countdown UILabel with morphing animation, and some useful function.
Stars: ✭ 714 (+1600%)
Mutual labels:  timer
Flutter timer and stopwatch
A Timer with all the functionality you would expect. Both Inputs and Outputs are of type Duration.
Stars: ✭ 18 (-57.14%)
Mutual labels:  timer
React Idle Timer
User activity timer component
Stars: ✭ 420 (+900%)
Mutual labels:  timer
Wecron
✔️ 微信上的定时提醒 - Cron on WeChat
Stars: ✭ 537 (+1178.57%)
Mutual labels:  timer
Zltoolkit
一个基于C++11的轻量级网络框架,基于线程池技术可以实现大并发网络IO
Stars: ✭ 838 (+1895.24%)
Mutual labels:  timer
Libcopp
cross-platform coroutine library in c++
Stars: ✭ 398 (+847.62%)
Mutual labels:  timer
Mycodo
An environmental monitoring and regulation system
Stars: ✭ 936 (+2128.57%)
Mutual labels:  timer
Wnr
⏱️ It's a time-management tool for computers. Work and rest, with wnr now.
Stars: ✭ 385 (+816.67%)
Mutual labels:  timer
Each
Elegant ⏱ interface for Swift apps
Stars: ✭ 764 (+1719.05%)
Mutual labels:  timer
Obs Studio Python Scripting Cheatsheet Obspython Examples Of Api
⚫️ OBS Studio API with Python
Stars: ✭ 40 (-4.76%)
Mutual labels:  timer
Dinnertime
Cooking timer & scheduler with spoken instructions
Stars: ✭ 7 (-83.33%)
Mutual labels:  timer
Update Background Locations
A sample iOs example that tracks background locations.
Stars: ✭ 7 (-83.33%)
Mutual labels:  timer

ttimer - Terminal Timer

ttimer is a simple timer that counts down time left in a terminal window. If run on Mac, Windows, or desktop Linux, it will send silent system notifications at 90% and 100% completion.

demo

Installing

macOS

brew install drgrib/tap/ttimer

go get

go get github.com/drgrib/ttimer

To make it accessible on the command line as ttimer, assuming you've added $GOPATH/bin to your $PATH, you can use

cd $GOPATH/src/github.com/drgrib/ttimer
go build
go install

Duration Timing

Lets say you want a timer for 3 minutes. Simply enter

ttimer 3

and you will start a timer count down like so

== 3m Timer ==
2m55s

Or if you want a very specific duration, you can specify it using

ttimer 3h2m5s

Or if you want a very short time

ttimer 30s

End Time Timing

Let's say you need to leave for the bus by 8:12 am, which is coming up in the next hour. You could simply enter

ttimer 812

and ttimer will automatically infer the next occurence of 8:12, which is am

== 812a Timer ==
23m29s

If you want to force it to set a timer for 8:12 pm, you could use

ttimer 812p

Resulting in something like

== 812p Timer ==
12h22m25s

If you want a timer for 3:00 pm, you could simply enter

ttimer 3p

All end time timers are set to align to zero seconds on the minute so they will change over to new minutes with the system clock.

Parsing Rules

  • Integers less than 100 and floats will be interpretted as minutes.
  • Strings fitting a call to time.ParseDuration will be interpretted as that duration. E.g. 1m30s or 2h.
  • Strings ending in a, p, am, or pm will be interpretted as times. E.g. 1p or 930a.
  • Integers greater than or equal to 100 will be interpretted as times. E.g. 242 will be interpretted as the next occurence of 2:42 and set to am or pm, whichever is soonest.

Exiting

To exit the timer at any time, simply press q.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].