Module: SocialStream::Population

Defined in:
lib/social_stream/population.rb,
lib/social_stream/base/autoload.rb,
lib/social_stream/population/actor.rb,
lib/social_stream/population/power_law.rb,
lib/social_stream/population/timestamps.rb,
lib/social_stream/population/activity_object.rb

Defined Under Namespace

Modules: Actor Classes: ActivityObject, PowerLaw, Timestamps

Class Method Summary collapse

Class Method Details

.task(message) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/social_stream/population.rb', line 4

def task message
  puts message
  time = Time.now

  yield

  puts "   -> #{ (Time.now - time).round(4) }s"
end