HeroStats Libraries
StatsEngine.SaveStatistic Method (String, Double, Boolean, DateTime)

[This is preliminary documentation and subject to change.]

Saves a statistic to in-memory storage

[Visual Basic]
Overloads Public Function SaveStatistic( _
   ByVal key As String, _
   ByVal value As Double, _
   ByVal replaceValue As Boolean, _
   ByVal time As Date _
) As StatisticsRow
[C#]
public StatisticsRow SaveStatistic(
   string key,
   double value,
   bool replaceValue,
   DateTime time
);

Parameters

key
The name of the statistic
value
The value to add to the statistic.
replaceValue
If true, value of the statistic will replace any other value
time
The point in time the statistic was calculated

Return Value

The row in the DataSet where the statistic was stored

Remarks

This version of the function defaults to calculating per-minute and per-hour averages

See Also

StatsEngine Class | HeroStats.StatsEngine Namespace | StatsEngine.SaveStatistic Overload List