Revision b77ba978 lib/utils.py
b/lib/utils.py | ||
---|---|---|
1176 | 1176 |
@return: Tuple containing (seconds, milliseconds) |
1177 | 1177 |
|
1178 | 1178 |
""" |
1179 |
seconds = round(seconds, 3) |
|
1179 | 1180 |
(seconds, fraction) = divmod(seconds, 1.0) |
1180 | 1181 |
return (int(seconds), int(round(fraction * 1000, 0))) |
1181 | 1182 |
|
Also available in: Unified diff