Skip to content

rafael747/stopwatch-for-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

stopwatch-for-bash

A simple stopwatch alias for bash

usage

Execute the script

./sw.sh

Copy or link to your path

Use as an alias

alias sw='echo "#### StopWatch #####";a=`date +%s`;while true; do b=`date +%s`;bn=`date +%3N`;date -d@"$(($b - $a))" -u +%H:%M:%S|tr -d "\n";echo -n ".$bn";sleep .1;echo -en "\r";done'

Add the alias to .bashrc

About

A simple stopwatch alias for bash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages