Flush timer duration to the logger. Note: Timer must have been stopped before flushing. Timer can be flushed only once. Subsequent calls will have no effect.
(self)
| 166 | return self._cpp_object.elapsed() |
| 167 | |
| 168 | def flush(self) -> None: |
| 169 | """Flush timer duration to the logger. |
| 170 | |
| 171 | Note: |
| 172 | Timer must have been stopped before flushing. |
| 173 | |
| 174 | Timer can be flushed only once. Subsequent calls will have |
| 175 | no effect. |
| 176 | """ |
| 177 | self._cpp_object.flush() |
| 178 | |
| 179 | |
| 180 | def timed(task: str): |
no outgoing calls