BlogGitHub
Reference/ORK/DATE_TIME/ORK/IF_STOPWATCH
Interface/ORK/IF_STOPWATCH
Stopwatch
Package
/ORK/DATE_TIME
Members
7
7 items
Methods
elapsed
MethodPublic

Returns the time elapsed since the stopwatch was started. If the stopwatch is currently running, the duration is calculated up to the moment of the call. If it has not been started yet, a zero duration is returned.

Parameters

NameDescriptionresultDuration object representing the elapsed time

Signature

METHODS elapsed RETURNING VALUE(result) TYPE REF TO /ork/if_duration.
is_high_resolution
MethodPublic

Indicates whether the stopwatch implementation supports high-resolution time measurement.

High-resolution stopwatches provide more precise timing values, typically suitable for performance measurements.

Parameters

NameDescriptionresultABAP_TRUE if high-resolution timing is supported

Signature

METHODS is_high_resolution RETURNING VALUE(result) TYPE abap_bool.
is_running
MethodPublic

Returns whether the stopwatch is currently running.

Parameters

NameDescriptionresultABAP_TRUE if the stopwatch is active

Signature

METHODS is_running RETURNING VALUE(result) TYPE abap_bool.
reset
MethodPublic

Resets the stopwatch to its initial state.

Any previously measured time is discarded and the stopwatch is set to a stopped state.

Signature

METHODS reset.
restart
MethodPublic

Restarts the stopwatch.

This method is a convenience operation equivalent to calling RESET followed immediately by START.

Signature

METHODS restart.
start
MethodPublic

Starts or resumes the stopwatch.

If the stopwatch is already running, this call has no effect.

Signature

METHODS start.
stop
MethodPublic

Stops the stopwatch.

After stopping, the currently measured elapsed time remains available and can be retrieved using the ELAPSED method. Calling STOP on an already stopped stopwatch has no effect.

Signature

METHODS stop.
Repository11 packages · 113 objects
124 items