ArcShell

arcshell_timer.sh

Reference

timer_mins_expired

Returns true when timer interval has passed and resets the timer.

> timer_expired_minutes [-force,-f] "timerKey" minutes

timer_secs_expired

Returns true when timer interval has passed and resets the timer.

> timer_secs_expired [-force,-f] "timerKey" seconds

timer_create

Create a new timer. Throws an error if it already exists.

> timer_create [-force,-f] [-start,-s] [-autolog,-a] ["timerKey"]
# -force: Re-create the timer if it already exists.
# -start: Start timer automatically.
# -autolog: Logs timer automatically.
# timerKey: Unique key assigned to the timer. Defaults to current process ID.

timer_time

Starts a new timer which will be auto-logged when timer_end if called.

> timer_time ["timerKey"]

timer_end

Used to stop timing a timer started with timer_time.

> timer_end ["timerKey"]

timer_start

Start a new timer or restart an existing timer.

> timer_start "timerKey"

timer_seconds

Return current timer time in seconds. Auto create and start if it doesn’t exist.

> timer_seconds ["timerKey"]

timer_minutes

Return current timer time in minutes. Auto create and start if it doesn’t exist.

> timer_minutes ["timerKey"]

timer_log_timer

Logs the current timer time to the application log.

> timer_log_timer ["timerKey='$$']

timer_reset

Reset a timer, also starts it if it is not running already.

> timer_reset ["timerKey"]

timer_stop

Stop a timer.

> timer_stop "timerKey"

timer_delete

Delete a timer.

> timer_delete "timerKey"

timer_exists

Return true if timer exists.

> timer_exists "timerKey"