PostSharpAPI 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
System.Double executionTime

The execution time, in milliseconds.

Boolean isOvertime

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

Overrides
LogRecordBuilder.SetExecutionTime(Double, Boolean)