test_timer.TestTimer.test_mms()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 1
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