System Library Common Framework
Search Results for

    *.Benchmark*,*.Tests*,*.ApiTests*,*.BaseTest*,DelegateJsonConverter,CalleeCancelledRequestException,ClientResponse,ContentType,OutputCachePolicy
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework SystemLibrary.Common.Framework.Net.dll

    A Clock to measure an actions execution time based on Stopwatch

    Clock

    public static class Clock

    Inheritance
    object
    Clock
    Examples
    Arguments
    X

    Methods

    Measure an actions execution time in milliseconds used

    Specify a message to also Log.Debug() the output

    public static long Measure(Action method, string message = null)

    X
    Clock.Measure(() => "hello", "Print hello");
    X
    Methods arguments
    Type Name Description
    Action method
    string message
    X
    Type Description
    long

    Milliseconds used

    }

    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Framework