> For the complete documentation index, see [llms.txt](https://doane-ccla.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doane-ccla.gitbook.io/docs/learning-linux/essential-commands/seconds.md).

# Script: Seconds

```bash
#!/bin/bash

START=$(date +%s.%N)

# ./execute/yourprogram/here
#  Do not forget to replace your own script and uncomment the previous line by deleting #

DURATION=$(echo "$(date +%s.%N) - $START" | bc)

printf "Execution time: %.6f seconds" $DURATION
```

Back to [Essential Commands](https://github.com/Doane-CCLA/docs/tree/c9215bd52a1d7478b5007653a3d91655824b20d7/learning-linux/essential-commands.md)
