PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Text­Log­Record­Builder Class/Text­Log­Record­Builder Methods/Text­Log­Record­Builder.​Set­Execution­Time Method

TextLogRecordBuilder.SetExecutionTime Method

Sets the method or activity execution time.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public override void SetExecutionTime(
	double executionTime,
	bool isOvertime
)

Parameters

executionTime
Type: System.Double
The execution time, in milliseconds.
isOvertime
Type: System.Boolean
true if executionTime is over the threshold set in ExecutionTimeThreshold, otherwise false.
See Also