#!/usr/bin/python3
# -*- coding: UTF-8 -*-

import time

busyTime = 10
idleTime = busyTime

while True:

    start = time.clock()
    while time.clock() - start < busyTime:
        pass
    time.sleep(busyTime / 1000)

[((117, 129), 'time.clock', 'time.clock', ([], {}), '()\n', (127, 129), False, 'import time\n'), ((190, 217), 'time.sleep', 'time.sleep', (['(busyTime / 1000)'], {}), '(busyTime / 1000)\n', (200, 217), False, 'import time\n'), ((140, 152), 'time.clock', 'time.clock', ([], {}), '()\n', (150, 152), False, 'import time\n')]