optimalisation code
Merge github.com:E2OpenPlugins/e2openplugin-AnalogClock