The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

Synopsis:

set timer [on|off]

Tracks and shows elapsed time between debugger events. If "on" or "off" is not given, "on" is assumed.

Since debugger overhead can be large depending on what you are doing, there are many ways to customize the debugger to take less time (and do less).

Stepping is slow, running to a breakpoint without stepping is relatively fast compared to previous versions of the debugger and compared to stepping.

Stopping at fewer events can also speed things up. Trace event buffering slows things down.

Buy turning this setting on, you may be able to get a feel for what how expensive the various settings.

See also:

set events, set trace buffer, step, and break,