Make not measured timings NaN
Currently times that are not measured are stored as zero. This trips up later calculations that try to divide things or take logarithms. Instead we should record these values as NaNs, maybe -NaN since it is rarely used. These would then continue to remain NaNs in following computations.