FC Code -- tcalc

tcalc is a zsh `time calculator': it understands and displays times in hh:mm:ss.ddd format (when the dimension of the expression is a time).

Examples

`Standard' calculus:

% 1 + 2 * 3
7

If one wants to run a 5000m in 15 minutes on an outdoor track, how long should each lap last?

% 15:0 / 12.5
0:1:12.000

Some code ran for 14:32 on a specific input. An optimised version takes 1:57. How many times faster is this?

% 14:32 / 1:57
7.4529914529914532

time indicates a command took 1434 minutes. How long is it?

1434:0
23:54:0.000

Sources (under GPL): tcalc-0.1.tgz.