Found in 1 comment on Hacker News
gcmeplz · 2021-11-23 · Original thread
`SECONDS` is like `PWD`: the shell keeps track of updating it somewhere, and it'll tell you how long your shell has been running.

https://www.oreilly.com/library/view/shell-scripting-expert/...