Sha256: a9a1a789d236ccedf56911c6324c57d2950eb87772df08ddf2e6ea8388aecadb

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

Measure the execution time of the code in the given block.

The optional message provided will have ' took <time>ms.' appended and
will appear in the log file if the 'debug!' Vedeu configuration option
was given.

    Vedeu.timer 'Really complex code' do
      # ... code to be measured
    end

    # => 'Really complex code took 0.234ms.'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.8.10 docs/dsl/by_method/timer.md
vedeu-0.8.9 docs/dsl/by_method/timer.md
vedeu-0.8.8 docs/dsl/by_method/timer.md
vedeu-0.8.7 docs/dsl/by_method/timer.md
vedeu-0.8.6 docs/dsl/by_method/timer.md
vedeu-0.8.5 docs/dsl/by_method/timer.md
vedeu-0.8.4 docs/dsl/by_method/timer.md
vedeu-0.8.3 docs/dsl/by_method/timer.md
vedeu-0.8.2 docs/dsl/by_method/timer.md
vedeu-0.8.1 docs/dsl/by_method/timer.md