projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
79ba165e3a5ffd7500ab5d9655d80abdf54a4e2b
[depot.git]
/
benchmark.rb
1
require
'benchmark'
2
3
class
<<
Benchmark
4
remove_method
:realtime
5
6
def
realtime
7
r0
=
Time
.
now
8
yield
9
r1
=
Time
.
now
10
r1
.
to_f
-
r0
.
to_f
11
end
12
end