Table of Contents

Class Timing

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

Timing information for a metric

public class Timing : IMetricsTiming
Inheritance
Timing
Implements
Inherited Members

Constructors

Timing()

Empty, stopped timing object

public Timing()

Timing(long)

Timing object in a started state

public Timing(long currentTime)

Parameters

currentTime long

Properties

ElapsedTicks

Elapsed ticks from start to stop. If timing hasn't been stopped yet, returns 0.

public long ElapsedTicks { get; }

Property Value

long

ElapsedTime

Elapsed time from start to stop. If timing hasn't been stopped yet, returns TimeSpan.Zero

public TimeSpan ElapsedTime { get; }

Property Value

TimeSpan

IsFinished

Whether the timing has been stopped

public bool IsFinished { get; }

Property Value

bool

Methods

Stop(long)

Stops timing

public void Stop(long currentTime)

Parameters

currentTime long