README.rdoc in tach-0.0.7 vs README.rdoc in tach-0.0.8
- old
+ new
@@ -21,9 +21,22 @@
The optional argument to meter tells it how many times to run each tach (it defaults to 1)
Each tach should have a name, so you can recognize them in the results
Then inside the tach block you should specify the code you care about comparing.
The name of each tach will be displayed as it starts
+For things requiring more complex setup you can make them do their own iteration, for instance:
+
+ Tach.meter(4) do
+
+ tach('complex') do |count|
+ duration = rand
+ count.times do
+ sleep(duration)
+ end
+ end
+
+ end
+
== Copyright
(The MIT License)
Copyright (c) 2010 {geemus (Wesley Beary)}[http://github.com/geemus]