#!/bin/sh

# small tool to debug the amount of time spent in every line of a command / script.
# Use it like:  command-to-debug 2>&1 | this-tool

while IFS= read -r line ; do
    printf "\033[1;30m%.12s  \033[0;39m%s\n" "$( date +%R:%S,%N )" "$line"
done


