Return current time in usecs
()
| 43 | |
| 44 | |
| 45 | def cur_usec(): |
| 46 | """Return current time in usecs""" |
| 47 | # t = time.time() |
| 48 | dt = datetime.now() |
| 49 | t = dt.minute * 60 + dt.second + dt.microsecond / (1e6) |
| 50 | return t |
| 51 | |
| 52 | class MeasureTime(object): |
| 53 | def __init__(self): |