PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersText­Log­Record­BuilderSet­Execution­Time
Open sandboxFocus

TextLogRecordBuilder.SetExecutionTime Method

SetExecutionTime(Double, Boolean)

Sets the method or activity execution time.

Declaration
public override void SetExecutionTime(double executionTime, bool isOvertime)
Parameters
Type Name Description
Double executionTime

The execution time, in milliseconds.

System.Boolean isOvertime

true if executionTime is over the threshold set in ExecutionTimeThreshold, otherwise false.

Overrides
LogRecordBuilder.SetExecutionTime(Double, Boolean)