shortformatspeed: Short speed format function

Description Usage Arguments Value Examples

Description

Converts speed in indexes per second to most easily readable two-decimal unit, between indexes per day (i/d), hour (i/h), minute (i/m) or second (i/s), followed by the corresponding unit

Usage

1

Arguments

ips

A numerical variable, a speed in indexes per second to convert.

Value

A character variable, formatted to short speed

Examples

1
2
3
4
5
6
shortformatspeed(4564) # outputs '4564 i/s'
shortformatspeed(45) # outputs '45 i/s'
shortformatspeed(48/60) # outputs '48 i/m'
shortformatspeed(3/60) # outputs '3 i/m'
shortformatspeed(45/3600) # outputs '45 i/h'
shortformatspeed(0.5/3600) # outputs '12 i/d'

florisc/pbar documentation built on May 25, 2019, 5:22 p.m.