Lines Matching refs:current
90 /** The current simulated tick. */
554 * a current count and updates a total (count * ticks) when this count
562 /** The current count. */
563 Counter current;
568 /** The tick that current last changed. */
579 : current(0), lastReset(0), total(0), last(0)
583 * Set the current count to the one provided, update the total and last
590 total += current * (curTick() - last);
592 current = val;
596 * Increment the current count by the provided value, calls set.
599 void inc(Counter val) { set(current + val); }
602 * Deccrement the current count by the provided value, calls set.
605 void dec(Counter val) { set(current - val); }
608 * Return the current count.
609 * @return The current count.
611 Counter value() const { return current; }
614 * Return the current average.
615 * @return The current average.
621 return (Result)(total + current) / (Result)(curTick() - lastReset + 1);
635 total += current * (curTick() - last);
700 * Return the current value of this stat as its base type.
701 * @return The current value.
914 * Return the current value of this stat as its base type.
915 * @return The current value.
920 * Return the current value of this statas a result type.
921 * @return The current value.
1430 /** The current sum. */
1566 /** The current sum. */
1702 /** The current sum. */