Module: PLine::Summarize
- Included in:
- PLine
- Defined in:
- lib/pline/summarize.rb
Constant Summary collapse
- DEFAULT_OUTPUT =
STDERR
- DIVISOR_NSEC =
1
- DIVISOR_USEC =
DIVISOR_NSEC * 1000
- DIVISOR_MSEC =
DIVISOR_USEC * 1000
- DIVISOR_SEC =
DIVISOR_MSEC * 1000
- @@output =
DEFAULT_OUTPUT
- @@divisor =
DIVISOR_USEC
- @@time_label =
:usec
Instance Method Summary collapse
- #output=(io) ⇒ Object
- #show_msec ⇒ Object
- #show_nsec ⇒ Object
- #show_sec ⇒ Object
- #show_usec ⇒ Object
Instance Method Details
#output=(io) ⇒ Object
5 6 7 |
# File 'lib/pline/summarize.rb', line 5 def output=(io) @@output = io end |
#show_msec ⇒ Object
26 27 28 29 |
# File 'lib/pline/summarize.rb', line 26 def show_msec() @@divisor = DIVISOR_MSEC @@time_label = :msec end |
#show_nsec ⇒ Object
16 17 18 19 |
# File 'lib/pline/summarize.rb', line 16 def show_nsec() @@divisor = DIVISOR_NSEC @@time_label = :nsec end |
#show_sec ⇒ Object
31 32 33 34 |
# File 'lib/pline/summarize.rb', line 31 def show_sec() @@divisor = DIVISOR_SEC @@time_label = :sec end |
#show_usec ⇒ Object
21 22 23 24 |
# File 'lib/pline/summarize.rb', line 21 def show_usec() @@divisor = DIVISOR_USEC @@time_label = :usec end |