FlowManager Documentation Beta

Structure Statistics​Value

public struct StatisticsValue

A statistics value indicated both as a counter value and as a total time value.

Initializers

init(counter:​time:​)

public init(counter: Int = 0, time: TimeInterval = 0.0)

Initialize a statistic value with initial zero values

Properties

counter

var counter: Int

The counter value of the current statistic.

time

var time: TimeInterval

The total time value of the current statistic.

Methods

increment(with:​)

public mutating func increment(with value: StatisticsValue)

Increment a statistic value of a certain time and counter values.