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 it?

% 14:32 / 1:57
7.4529914529914532

time indicates a command took 14348 seconds. How long is it?

% 0:14348
3:59:8.000

Source code

tcalc-0.1.tgz. This is released under GPL.