#timer #cli #duration #local-time #read

app pocketwatch

A simple timer CLI

2 releases

0.1.1 Apr 19, 2024
0.1.0 Apr 19, 2024

#2 in #local-time

Download history 166/week @ 2024-04-13 66/week @ 2024-04-20

232 downloads per month

MIT/Apache

125KB
70 lines

About

pocketwatch is a simple Rust CLI timer utility. It has the ability to read the current local time, count up (stopwatch), or count down (timer) with an audible alarm.

Installation

pocketwatch can be installed through cargo.

cargo install pocketwatch

Usage

Read the current local time:

pocketwatch read

Start a stopwatch

pocketwatch count-up

Start a timer - duration specified as ((h:)m:)s

pocketwatch count-down 10
pocketwatch count-down 2:30
pocketwatch count-down 1:30:00

Credits

The alarm sound was created by FoolBoyMedia.

Dependencies

~12–47MB
~758K SLoC