Table of Contents

Method LogPercentRelativeToFirst

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

LogPercentRelativeToFirst(double[], string[], ILogWriter?, string?)

Logs values and their percentage relative to the first value. The first value is treated as 100%.

public static void LogPercentRelativeToFirst(double[] values, string[] titles, ILogWriter? logger = null, string? unit = null)

Parameters

values double[]

Array of numeric values (e.g. times in ms). Must be non-null and length > 0.

titles string[]

Array of titles corresponding to values. Must be same length as values.

logger ILogWriter

The logger to use for logging.

unit string

The unit of measurement (e.g. "ms").