#!/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)

[((11, 12, 11, 24), 'time.clock', 'time.clock', ({}, {}), '()', False, 'import time\n'), ((14, 4, 14, 31), 'time.sleep', 'time.sleep', ({(14, 15, 14, 30): '(busyTime / 1000)'}, {}), '(busyTime / 1000)', False, 'import time\n'), ((12, 10, 12, 22), 'time.clock', 'time.clock', ({}, {}), '()', False, 'import time\n')]