Artemis Artemis
Artemis Artemis

Search Results for

    Class ProfilingMeasurement

    Represents a set of profiling measurements

    Inheritance
    object
    ProfilingMeasurement
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class ProfilingMeasurement

    Properties

    Identifier

    Gets the unique identifier of this measurement

    Declaration
    public string Identifier { get; }
    Property Value
    Type Description
    string

    Measurements

    Gets the last 1000 measurements

    Declaration
    public long[] Measurements { get; }
    Property Value
    Type Description
    long[]

    Methods

    GetAverage()

    Gets the average time of the last 1000 measurements

    Declaration
    public TimeSpan GetAverage()
    Returns
    Type Description
    TimeSpan

    GetCount()

    Gets the number of measurements taken

    Declaration
    public ulong GetCount()
    Returns
    Type Description
    ulong

    GetLast()

    Gets the last measured time

    Declaration
    public TimeSpan GetLast()
    Returns
    Type Description
    TimeSpan

    GetMax()

    Gets the max time of the last 1000 measurements

    Declaration
    public TimeSpan GetMax()
    Returns
    Type Description
    TimeSpan

    GetMin()

    Gets the min time of the last 1000 measurements

    Declaration
    public TimeSpan GetMin()
    Returns
    Type Description
    TimeSpan

    GetPercentile(double)

    Gets the nth percentile of the last 1000 measurements

    Declaration
    public TimeSpan GetPercentile(double percentile)
    Parameters
    Type Name Description
    double percentile
    Returns
    Type Description
    TimeSpan

    Start()

    Starts measuring time until Stop(long) is called

    Declaration
    public void Start()

    Stop(long)

    Stops measuring time and stores the time passed in the Measurements list

    Declaration
    public long Stop(long correction = 0)
    Parameters
    Type Name Description
    long correction

    An optional correction in ticks to subtract from the measurement

    Returns
    Type Description
    long

    The time passed since the last Start() call

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.