Example #1
0
		public Meter(string eventType, ITimeUnit rateUnit, Clock clock)
		{
			_rateUnit = rateUnit;
			_eventType = eventType;
			_clock = clock;
			_startTime = _clock.GetTick();
			_lastTick = new AtomicLong(_startTime);
		}
Example #2
0
		public Counter()
		{
			_counter = new AtomicLong(0);
		}