Skip to content

Instantly share code, notes, and snippets.

### Display execution time if command took longer than REPORTTIME_TOTAL
#
# https://superuser.com/a/847411/376927
#
REPORTTIME_TOTAL=1 # seconds
cmd_execution_time() {
local stop=$((`date "+%s"`))
let local "cmd_elapsed = ${stop} - ${cmd_start_time}"
let local "cmd_minutes = ${cmd_elapsed} / 60"
let local "cmd_seconds = ${cmd_elapsed} % 60"
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 7, 2024 01:25
Essential JavaScript Links