Copyright | Copyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data TimingStatsAccumulator m a
- newTimingStatsAccumulator :: (MonadDES m, TimingData a) => Signalable m a -> Event m (TimingStatsAccumulator m a)
- timingStatsAccumulated :: MonadDES m => TimingStatsAccumulator m a -> Event m (TimingStats a)
Timing Statistics Accumulator
data TimingStatsAccumulator m a Source #
Represents an accumulator for the timing statistics.
newTimingStatsAccumulator :: (MonadDES m, TimingData a) => Signalable m a -> Event m (TimingStatsAccumulator m a) Source #
Start gathering the timing statistics from the current simulation time.
timingStatsAccumulated :: MonadDES m => TimingStatsAccumulator m a -> Event m (TimingStats a) Source #
Return the accumulated statistics.