Easy measure time took in a bash script
In Bash, the $SECONDS
variable is a special variable that automatically keeps
track of the number of seconds since the current shell or script started
executing. It starts counting from the moment the script begins running.
#!/bin/bash
# Reset the timer to zero.
SECONDS=0
# Do something.
sleep 5
# Print the time elapsed.
echo "Time taken: $SECONDS seconds"
Other notes
- dcss Sane default for Dungeon Crawl Stone Soup Online edition
- Bulk thumbnails
- Change permissions of matching files recursively
- c Calling assembly functions from C
- Make B/W SVG charts with matplotlib
- Sane defaults for tmux with more visible statusbar
- plan9 Run 9front in Qemu
- c Embedding resources into binary with C
- Development environments with Nix
- Previews how man page written in Troff will look like
- 10/GUI 10 Finger Multitouch User Interface
- c Extend Lua with custom C functions using Clang
- plan9 Mount Plan9 over network
- plan9 My brand new Plan9/9front desktop
- Convert all MKV files into other formats