(msg)
| 144 | |
| 145 | @contextmanager |
| 146 | def Timer(msg): |
| 147 | print(msg, '...',) |
| 148 | start = clock() |
| 149 | try: |
| 150 | yield |
| 151 | finally: |
| 152 | print("%.2f ms" % ((clock()-start)*1000)) |
| 153 | |
| 154 | class StatValue: |
| 155 | def __init__(self, smooth_coef = 0.5): |
no test coverage detected