6 attach_function :time, [ :pointer ], :time_t
10 puts "Benchmark FFI time(3) performance, #{iter}x"
13 puts Benchmark.measure {
14 iter.times { Posix.time(nil) }
17 puts "Benchmark Time.now performance, #{iter}x"
19 puts Benchmark.measure {
20 iter.times { Time.now }