Sha256: e194c7b2c626d94dd4d1aff19ddcb8c69e5ac75e13d1136cf0ed6d96587043f1
Contents?: true
Size: 351 Bytes
Versions: 27
Compression:
Stored size: 351 Bytes
Contents
$: << File.join(File.absolute_path(__FILE__), '..', '..', 'lib') require "pulse-meter" PulseMeter.redis = Redis.new sensor = PulseMeter::Sensor::Timelined::Counter.new(:simple_sample_counter, :interval => 5, :ttl => 60 * 60, :annotation => 'Simple Sample Counter' ) while true STDERR.puts "tick" sensor.event(1) sleep(Random.rand) end
Version data entries
27 entries across 27 versions & 1 rubygems