|
Tekvel Magic
|
Provides convenient interface to time delay measurements. More...
Public Member Functions | |
| def | __init__ (self, bool autostart=True) |
| def | start (self) |
| Starts the stopwatch. More... | |
| def | split (self, result=None) |
| Sets timer split time. More... | |
| def | stop (self) |
| Stops the timer. More... | |
| def | get_deltas (self, bool as_string=False) |
| Returns timedeltas for splits. More... | |
Provides convenient interface to time delay measurements.
| def __init__ | ( | self, | |
| bool | autostart = True |
||
| ) |
| def get_deltas | ( | self, | |
| bool | as_string = False |
||
| ) |
Returns timedeltas for splits.
The deltas are retured as either an array like [<<T01>>, <<T12>> ... <<Tnm>>] or a formatted string like T01 = XX ms; T12 = YY ms; ... dependent on the as_string parameter.
| as_string | If set True the string containing all splits will be retured. Если установлено True отрезки возрващаются в формате одной строки. |
| def split | ( | self, | |
result = None |
|||
| ) |
Sets timer split time.
| def start | ( | self | ) |
Starts the stopwatch.
| def stop | ( | self | ) |
Stops the timer.