Replaced the SetMethod for Millis into a function pointer interface.

This requires less PlatformSpecific code and also less code in the usage.