MCPcopy Index your code
hub / github.com/caarlos0/timer

github.com/caarlos0/timer @v1.4.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.6 ↗ · + Follow
7 symbols 16 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://vhs.charm.sh/vhs-1q9uo4hkLStOL4UHZFfQ4W.gif" alt="Made with VHS">
<a href="https://vhs.charm.sh">
    <img src="https://stuff.charm.sh/vhs/badge.svg">
</a>



<h1 align="center">timer</h1>

A sleep with progress.


Timer is a small CLI, similar to the sleep everyone already knows and love, with a couple of extra features:

  • a progress bar indicating the progression of said timer
  • a timer showing how much time is left
  • named timers

Usage

timer <duration>
timer -n <name> <duration>
man timer
timer --help

It is possible to pass a time unit for <duration>.

Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". If no unit is passed, it defaults to seconds ("s").

If you want to show the start time in 24-hour format, use --format 24h. For example:

timer 5s --format 24h -n Demo

Currently, the two formats supported by the --format option are: - kitchen: the default, example: 9:16PM. - 24h: 24-hour time format, example: 21:16.

Install

homebrew:

brew install caarlos0/tap/timer

macports:

sudo port install timer

snap:

snap install timer

apt:

echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install timer

yum:

echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install timer

arch linux:

yay -S timer-bin

deb/rpm/apk:

Download the .apk, .deb or .rpm from the releases page and install with the appropriate commands.

manually:

Download the pre-compiled binaries from the releases page or clone the repo build from source.

Badges

Release

Software License

Build

Go Report Card

Powered By: GoReleaser

Core symbols most depended-on inside this repo

addSuffixIfArgIsNumber
called by 1
main.go
Init
called by 0
main.go
Update
called by 0
main.go
View
called by 0
main.go
init
called by 0
main.go
main
called by 0
main.go

Shape

Function 3
Method 3
Struct 1

Languages

Go100%

Modules by API surface

main.go7 symbols

For agents

$ claude mcp add timer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact