Skip to content

Instantly share code, notes, and snippets.

@nchammas
nchammas / timer.sh
Last active August 29, 2015 14:08 — forked from esoupy/Timer.sh
A simple timer / stopwatch implemented as a bash function.
#!/bin/bash
# Display the duration between timer start and stop.
#
# Usage: timer {start|stop} [format]
#
# Example:
#
# timer start
# <script_commands>