Improved Accuracy

Improved the baseline measurement accuracy.  The previous implementation
was pushing a double into an unsigned, creating a small rounding error.