src/Azos/Glue/Transport.cs
/// <summary>
/// Processes named time measurement statistical sample by using EMA filter
/// </summary>
/// <param name="key">Name of time measurement key</param>
/// <param name="ticks">Duration in ticks</param>
Processes named time measurement statistical sample by using EMA filter
Processes named time measurement statistical sample by using EMA filter
protected internal void stat_Time(string key, long ticks)
                         {
                            if (!Binding.MeasureStatTimes) return;
                            var time = ticks / (double)Stopwatch.Frequency;
                            var F = Binding.StatTimesEMAFactor;
                            var ema = m_StatTimes.AddOrUpdate(key, time,  (k, old) => ((F * time) + (( 1d - F) * old))  );
                         }
protected internal void stat_Time ( string key , long ticks ) { if ( ! Binding . MeasureStatTimes ) return ; var time = ticks / ( double ) Stopwatch . Frequency ; var F = Binding . StatTimesEMAFactor ; var ema = m_StatTimes . AddOrUpdate ( key , time , ( k , old ) => ( ( F * time ) + ( ( 1d - F ) * old ) ) ) ; }
Processes named time measurement statistical sample by using EMA filter
Processes named time measurement statistical sample by using EMA filter
key
string
Name of time measurement key
Name of time measurement key
ticks
long
Duration in ticks
Duration in ticks