(self, other)
| 166 | self._timestamp = time.perf_counter() |
| 167 | |
| 168 | def elapsed_time(self, other): |
| 169 | if self._timestamp is None or other._timestamp is None: |
| 170 | raise RuntimeError("Attempted to measure elapsed time before events were recorded") |
| 171 | return (other._timestamp - self._timestamp) * 1000.0 |
| 172 | |
| 173 | class MPSArch(Arch): |
| 174 | """ Apple Silicon GPUs via Metal Performance Shaders """ |
no outgoing calls
no test coverage detected