zsh-users
 help / color / mirror / code / Atom feed
* When does REPORTTIME trigger?
@ 2022-09-21 20:31 Zach Riggle
  2022-09-21 21:37 ` Dominik Vogt
  0 siblings, 1 reply; 3+ messages in thread
From: Zach Riggle @ 2022-09-21 20:31 UTC (permalink / raw)
  To: Zsh Users

I recently learned about REPORTTIME but I can't manage to get it to trigger.

    $ cat report.zsh
    #!/bin/zsh
    export REPORTTIME=4

    sleep 2
    echo 2

    sleep 5
    echo 5

    $ zsh report.zsh
    2
    5

Zach Riggle


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When does REPORTTIME trigger?
  2022-09-21 20:31 When does REPORTTIME trigger? Zach Riggle
@ 2022-09-21 21:37 ` Dominik Vogt
  2022-09-21 21:42   ` Dominik Vogt
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Vogt @ 2022-09-21 21:37 UTC (permalink / raw)
  To: zsh-users

On Wed, Sep 21, 2022 at 03:31:18PM -0500, Zach Riggle wrote:
> I recently learned about REPORTTIME but I can't manage to get it to trigger.

When the command actually uses tham much cpu time (either user or
system).  Idle time does not count.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When does REPORTTIME trigger?
  2022-09-21 21:37 ` Dominik Vogt
@ 2022-09-21 21:42   ` Dominik Vogt
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Vogt @ 2022-09-21 21:42 UTC (permalink / raw)
  To: zsh-users

On Wed, Sep 21, 2022 at 10:37:38PM +0100, Dominik Vogt wrote:
> On Wed, Sep 21, 2022 at 03:31:18PM -0500, Zach Riggle wrote:
> > I recently learned about REPORTTIME but I can't manage to get it to trigger.
>
> When the command actually uses tham much cpu time (either user or
> system).  Idle time does not count.

Try this:

  dd if=/dev/zero of=/dev/null bs=1M count=1M

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-21 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 20:31 When does REPORTTIME trigger? Zach Riggle
2022-09-21 21:37 ` Dominik Vogt
2022-09-21 21:42   ` Dominik Vogt

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).