Class WakeLockAttribute
- Namespace
- BenchmarkDotNet.Attributes
- Assembly
- BenchmarkDotNet.dll
Placing a WakeLockAttribute on your assembly or class controls whether the Windows system enters sleep or turns off the display while benchmarks run.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class)]
public sealed class WakeLockAttribute : Attribute, IConfigSource
- Inheritance
-
WakeLockAttribute
- Implements
- Inherited Members
Constructors
WakeLockAttribute(WakeLockType)
public WakeLockAttribute(WakeLockType wakeLockType)
Parameters
wakeLockType
WakeLockType
Properties
Config
public IConfig Config { get; }