def to_profile(wb, f, n): t = -time.time() wb.save(f) print('took %.4fs for %d styles' % (t + time.time(), n))