Show / Hide Table of Contents

    Class Performance

    Provides a set of methods for performance measurement.

    Предоставляет набор методов для замера производительности.

    Inheritance
    Object
    Performance
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Diagnostics
    Assembly: Platform.Diagnostics.dll
    Syntax
    public static class Performance

    Methods

    | Improve this Doc View Source

    Measure(Action)

    Measures the time it takes to execute the action by executing it and using Stopwatch.

    Измеряет время, которое занимает выполнение действия, выполняя его и используя Stopwatch.

    Declaration
    public static TimeSpan Measure(Action action)
    Parameters
    Type Name Description
    Action action

    The Action delegate.

    Делегат Action.

    Returns
    Type Description
    TimeSpan

    The time interval representing the time it took to execute the action.

    Временной интервал, представляющий время, которое потребовалось для выполнения действия.

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