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

LogRecordBuilder.SetExecutionTime Method

Sets the method or activity execution time.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public virtual 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