File: test_timer.py

package info (click to toggle)
python-easydev 0.12.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 488 kB
  • sloc: python: 1,899; javascript: 49; makefile: 11
file content (13 lines) | stat: -rw-r--r-- 201 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from easydev.timer import Timer
import time


def test_timer():

    times = []
    with Timer(times):
        time.sleep(.1)
    assert len(times) == 1
    assert sum(times) <1

    tt = Timer(times)