Skip to main content
Skip table of contents

displayRuntime

This procedure provides debug logging and estimated duration for a particular block of code. It accepts two mandatory timestamp parameters: the start of the whole execution and the start of the particular block. This allows to estimate how much time has passed since both timestamps. Additionally, the procedure returns the current timestamp for use in subsequent calls. 

Parameters

ParameterDescription
startTimeStart timestamp of the whole process execution; mandatory
blockStartTimeStart timestamp of the block; mandatory
contextLogging context to be appended to com.datavirtuality.connectors
procedureNameProcedure name to identify the full procedure (default: the code)
textText to identify the small data block (default: the block)

Attributes

Attribute

Type

Description

currentTime

timestamp

Current timestamp (moment the procedure started)

Example

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

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.