Fixed use of MILLISECONDS() macro

Using it with a non-constant parameter resulted in floating point
arithmetic at runtime, with linking of floating point library functions.