このプロシージャは、特定のコードブロックのデバッグロギングと推定所要時間を提供します。これは、実行全体の開始と特定のブロックの開始という2つの必須TIMESTAMPパラメータを受け付けます。これにより、両方のTIMESTAMPからどれだけの時間が経過したかを推定することができます。さらに、このプロシージャは、以降の呼び出しで使用するために、現在のタイムスタンプを返します。 

Parameters

Parameter

Description

startTime

Start timestamp of the whole process execution; mandatory

blockStartTime

Start timestamp of the block; mandatory

context

Logging context to be appended to com.datavirtuality.connectors

procedureName

Procedure name to identify the full procedure (default: the code)

text

Text to identify the small data block (default: the block)

Attributes

Attribute

Type

Description

currentTime

timestamp

Current timestamp (moment the procedure started)

Example

DECLARE timestamp currentTime = ...
...
currentTime = SELECT currentTime FROM UTILS.displayRuntime (
startTime => startTime,
blockStartTime => currentTime,
context => 'api.section.particularItems',
procedureName => 'getApiSectionParticularItems',
text => 'Starting data parsing...'
);