Class CudaStopWatch
Measures via CUDA events the timespan between Start() and Stop() calls.
Inheritance
System.Object
CudaStopWatch
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)
System.Object.ToString()
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaStopWatch : IDisposable
Constructors
| Improve this Doc View SourceCudaStopWatch()
Declaration
public CudaStopWatch()
CudaStopWatch(CUEventFlags)
Declaration
public CudaStopWatch(CUEventFlags flags)
Parameters
Type | Name | Description |
---|---|---|
CUEventFlags | flags |
CudaStopWatch(CUEventFlags, CUstream)
Declaration
public CudaStopWatch(CUEventFlags flags, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUEventFlags | flags | |
CUstream | stream |
CudaStopWatch(CUstream)
Declaration
public CudaStopWatch(CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUstream | stream |
Properties
| Improve this Doc View SourceStartEvent
Returns the inner start event
Declaration
public CudaEvent StartEvent { get; }
Property Value
Type | Description |
---|---|
CudaEvent |
StopEvent
Returns the inner stop event
Declaration
public CudaEvent StopEvent { get; }
Property Value
Type | Description |
---|---|
CudaEvent |
Stream
Returns the inner stream
Declaration
public CUstream Stream { get; }
Property Value
Type | Description |
---|---|
CUstream |
Methods
| Improve this Doc View SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetElapsedTime()
Get elapsed time in milliseconds, sync on stop event
Declaration
public float GetElapsedTime()
Returns
Type | Description |
---|---|
System.Single | Elapsed time in ms |
GetElapsedTimeNoSync()
Get elapsed time in milliseconds, no sync on stop event
Declaration
public float GetElapsedTimeNoSync()
Returns
Type | Description |
---|---|
System.Single | Elapsed time in ms |
Start()
Start measurement
Declaration
public void Start()
Stop()
Stop measurement
Declaration
public void Stop()
Implements
System.IDisposable