Added a permute_milliseconds optional parameter to enable to unintuitive...

... not full time freeze required to get around some mysql comparison issues
in general, i would avoid using globals for configuration like this, but just looking at this, i don't know that there would be an easy way to avoid it without a significant bit of work. other than that, lgtm.