File: README

package info (click to toggle)
libmath-calc-units-perl 1.07-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 224 kB
  • sloc: perl: 1,925; yacc: 38; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Examples:

It won't take *that* long to download this 650MB cd image over Mom's
33.6Kbps modem, will it? I can just let it run all night.

    % ucalc "650MB/33.6Kbps"
    1.834 day

What's the throughput for random 8KB reads, using a hard disk with
20MB/sec transfers and an average access latency of 15ms?

    % perl -MMath::Calc::Units=readable -le 'print foreach (readable("8KB / (8KB/(20MB/sec) + 15ms)"))'

    532.3 byte / millisec
    1.785 gigabyte / hour
    42.83 gigabyte / day
    519.8 kilobyte / sec
    30.46 megabyte / minute

Note: ucalc is a thin wrapper script that pretty much does what the
one-liner above does.

Installing:

    perl Makefile.PL
    make
    make test
    make install

Documentation: perldoc Math::Calc::Units

Author: Steve Fink <sfink@cpan.org>