Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR Comments


Whiskeyjack says: Reply to candycanearter07 on HPR4678

RE: hpr4678::2026-07-08 High Resolution Elapsed Time in Shell Scripts by Whiskeyjack
00:28:49 Listen in ogg, opus, or mp3 format.
I'm glad that you found this episode interesting.

I wasn't aware that you could use DEBUG to measure the time that an episode took to run.

Perhaps you could do an episode on this to tell us how to do it? I am sure that a lot of people would find that very interesting.

candycanearter07 says: cool ep

RE: hpr4678::2026-07-08 High Resolution Elapsed Time in Shell Scripts by Whiskeyjack
00:28:49 Listen in ogg, opus, or mp3 format.
I didn't know there were so many ways to measure the exact time, I just usually use $EPOCHREALTIME for stuff.

Did you know you can also catch DEBUG on bash to implement a "time last command took" field to your prompt? It's a bit of a hacky solution but it works pretty well.

Mastodon Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.