saltstack/salt — pull request #14656 by kyriakosoikonomakos (2014-07-31 13:11:31+00:00)
Title: fix for issue #14655

Fix for issue #14655

timedelta.microseconds returns the microseconds portion of the timestamp. Instead we call total_seconds() and the multiple by 1000.

```
>>> start_time = datetime.datetime.now()
>>> finish_time = datetime.datetime.now()
>>> (finish_time-start_time).total_seconds() * 1000
14567.464
>>>
```