Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions U2/Utilities/Verb-Demos/Timing/BP_SOURCE/VERBTIMER
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Copy VERBTIMER -> SELECT
* In this example, all SELECT statements will now be timed.
*
$OPTIONS -VAR.SELECT

EQU queryStatement TO 1
EQU queryTotalTime TO 2
Expand Down Expand Up @@ -52,8 +53,14 @@ IF LOGGING.ACTIVE THEN
today = DATE()
END

* Execute the standard version of the command.
EXECUTE STD:command
INCOMING.LIST = @TRUE
READLIST activeList FROM 0 ELSE INCOMING.LIST = @FALSE
* Execute the standard version of the command, passing the active list if present.
IF INCOMING.LIST THEN
EXECUTE STD:command PASSLIST activeList
END ELSE
EXECUTE STD:command
END

IF LOGGING.ACTIVE THEN
endTime = TIME()
Expand Down