aivika-transformers-2.1: Transformers for the Aivika simulation library

CopyrightCopyright (c) 2009-2014, David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Simulation.Aivika.Trans.Statistics.Accumulator

Contents

Description

Tested with: GHC 7.8.3

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 m a Source

Represents an accumulator for the timing statistics.

newTimingStatsAccumulator :: (MonadComp m, TimingData a) => Signalable m a -> Event m (TimingStatsAccumulator m a) Source

Start gathering the timing statistics from the current simulation time.

timingStatsAccumulated :: MonadComp m => TimingStatsAccumulator m a -> Event m (TimingStats a) Source

Return the accumulated statistics.