[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazLoggerProfiling' (#lazutils)

TLazLoggerBlockTimer.TimeDiff

Calculates the cumulative execution time for the block at the specified nesting level.

Declaration

Source position: lazloggerprofiling.pas line 37

public property TLazLoggerBlockTimer.TimeDiff[ALevel: Integer] : QWord
  read GetTimeDiff;

Description

TimeDiff is a read-only QWord property which provides indexed access to the cumulative execution time for the block at the specified nesting level. The value represents a number of "ticks" or milliseconds as returned from the GetTickCount64 routine in the RTL.

The property value is calculated as the difference between the current "tick" value and the execution start time from the parent block. A timer overflow condition is handled in the calculation. The property value is 0 (zero) when ALevel is not in the range 0..MaxDepth.


Version 4.0 Generated 2025-05-03 Home