aivika-6.1: A multi-method simulation library
CopyrightCopyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simulation.Aivika.Statistics.Accumulator

Description

Tested with: GHC 8.0.1

This small utility module allows accumulating the timing statistics based on Signalable data such as the queue size or the number of lost items in the queue.

Synopsis

Timing Statistics Accumulator

data TimingStatsAccumulator a Source #

Represents an accumulator for the timing statistics.

newTimingStatsAccumulator :: TimingData a => Signalable a -> Event (TimingStatsAccumulator a) Source #

Start gathering the timing statistics from the current simulation time.

timingStatsAccumulated :: TimingStatsAccumulator a -> Event (TimingStats a) Source #

Return the accumulated statistics.