summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-09-02 10:32:47 +0000
committerBurak Emir <emir@epfl.ch>2007-09-02 10:32:47 +0000
commit33770714c3b38e751eddc51dd58abdef1b0b0138 (patch)
tree73064248b590f7e0bf11864c93bfc1e1955ce3db
parent623a1e50fb1999e0eea2f2c229d54d01eaae80d8 (diff)
downloadscala-33770714c3b38e751eddc51dd58abdef1b0b0138.tar.gz
scala-33770714c3b38e751eddc51dd58abdef1b0b0138.tar.bz2
scala-33770714c3b38e751eddc51dd58abdef1b0b0138.zip
sorry, Iulian is the author of this file.
-rw-r--r--src/library/scala/testing/Benchmark.scala9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/library/scala/testing/Benchmark.scala b/src/library/scala/testing/Benchmark.scala
index 005942e3df..8ab3328d0f 100644
--- a/src/library/scala/testing/Benchmark.scala
+++ b/src/library/scala/testing/Benchmark.scala
@@ -70,9 +70,12 @@ trait Benchmark {
def prefix: String = getClass().getName()
/**
- * The entry point. It takes two arguments: the number of
- * consecutive runs, and the name of a log file where to
- * append the times.
+ * The entry point. It takes two arguments (n), (name)
+ * and an optional argument multiplier (mult).
+ * (n) is the number of consecutive runs, (name) the name
+ * of a log file where to append the times.
+ * if (mult) is present, the benchmark is repeated (mult)
+ * times.
*/
def main(args: Array[String]) {
if (args.length > 1) {