Class WaitTask
Simply waits for the specified (via the parameter) amount of time. For example Wait(30s) waits for 30 seconds. This is useful with background tasks to control how long the tasks run.
You can specify h, m, or s (hours, minutes, seconds) as the trailing time unit. No unit is interpreted as seconds.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class WaitTask : PerfTask, IDisposable
Constructors
| Improve this Doc View SourceWaitTask(PerfRunData)
Declaration
public WaitTask(PerfRunData runData)
Parameters
| Type | Name | Description |
|---|---|---|
| PerfRunData | runData |
Properties
| Improve this Doc View SourceSupportsParams
Declaration
public override bool SupportsParams { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
| Improve this Doc View SourceDoLogic()
Declaration
public override int DoLogic()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
| Improve this Doc View SourceSetParams(String)
Declaration
public override void SetParams(string params)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | params |
Overrides
Implements
System.IDisposable