| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import unittest |
||
| 2 | from looptools import Timer |
||
| 3 | from time import sleep |
||
| 4 | |||
| 5 | |||
| 6 | class TestTimer(unittest.TestCase): |
||
| 7 | @Timer.decorator |
||
| 8 | def test_mms(self): |
||
| 9 | sleep(.05) |
||
| 10 | |||
| 11 | @Timer.decorator |
||
| 12 | def test_sec(self): |
||
| 13 | sleep(1.1) |
||
| 14 | |||
| 15 | |||
| 16 | if __name__ == '__main__': |
||
| 17 | unittest.main() |
||
| 18 |