kernel: Replace timeconst.pl with a bc script