CpuStressAllocate Method

Allocates the specified average percentage of CPU usage for this instance.

Definition

Namespace: DevCase.Core.IO.Devices.HardwareStress
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual void Allocate(
	float percentage
)

Parameters

percentage  Single
The average percentage of CPU usage to allocate, from 0.01% to 100%.

Exceptions

ArgumentException Value greater than 0 is required.
ArgumentOutOfRangeException Value must be in range of 0.01% to 100%.

See Also