Show / Hide Table of Contents

    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 Source

    CudaStopWatch()

    Declaration
    public CudaStopWatch()
    | Improve this Doc View Source

    CudaStopWatch(CUEventFlags)

    Declaration
    public CudaStopWatch(CUEventFlags flags)
    Parameters
    Type Name Description
    CUEventFlags flags
    | Improve this Doc View Source

    CudaStopWatch(CUEventFlags, CUstream)

    Declaration
    public CudaStopWatch(CUEventFlags flags, CUstream stream)
    Parameters
    Type Name Description
    CUEventFlags flags
    CUstream stream
    | Improve this Doc View Source

    CudaStopWatch(CUstream)

    Declaration
    public CudaStopWatch(CUstream stream)
    Parameters
    Type Name Description
    CUstream stream

    Properties

    | Improve this Doc View Source

    StartEvent

    Returns the inner start event

    Declaration
    public CudaEvent StartEvent { get; }
    Property Value
    Type Description
    CudaEvent
    | Improve this Doc View Source

    StopEvent

    Returns the inner stop event

    Declaration
    public CudaEvent StopEvent { get; }
    Property Value
    Type Description
    CudaEvent
    | Improve this Doc View Source

    Stream

    Returns the inner stream

    Declaration
    public CUstream Stream { get; }
    Property Value
    Type Description
    CUstream

    Methods

    | Improve this Doc View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    For IDisposable

    Declaration
    protected virtual void Dispose(bool fDisposing)
    Parameters
    Type Name Description
    System.Boolean fDisposing
    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    GetElapsedTime()

    Get elapsed time in milliseconds, sync on stop event

    Declaration
    public float GetElapsedTime()
    Returns
    Type Description
    System.Single

    Elapsed time in ms

    | Improve this Doc View Source

    GetElapsedTimeNoSync()

    Get elapsed time in milliseconds, no sync on stop event

    Declaration
    public float GetElapsedTimeNoSync()
    Returns
    Type Description
    System.Single

    Elapsed time in ms

    | Improve this Doc View Source

    Start()

    Start measurement

    Declaration
    public void Start()
    | Improve this Doc View Source

    Stop()

    Stop measurement

    Declaration
    public void Stop()

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX