THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class IPerformanceCounter(ABC): (source)
Known subclasses: orionis.support.performance.PerformanceCounter
Undocumented
| Async Method | aelapsed |
Return the elapsed time in seconds asynchronously. |
| Async Method | aget |
Return the elapsed time in microseconds asynchronously. |
| Async Method | aget |
Return the elapsed time in milliseconds asynchronously. |
| Async Method | aget |
Return the elapsed time in minutes asynchronously. |
| Async Method | aget |
Return the elapsed time in seconds asynchronously. |
| Async Method | arestart |
Restart the performance counter asynchronously. |
| Async Method | astart |
Start the performance counter asynchronously. |
| Async Method | astop |
Stop the performance counter asynchronously. |
| Method | elapsed |
Return the elapsed time in seconds between the last start and stop calls. |
| Method | get |
Return the elapsed time in microseconds. |
| Method | get |
Return the elapsed time in milliseconds. |
| Method | get |
Return the elapsed time in minutes. |
| Method | get |
Return the elapsed time in seconds. |
| Method | restart |
Restart the performance counter. |
| Method | start |
Start the performance counter. |
| Method | stop |
Stop the performance counter and compute elapsed time. |
| Class Variable | __slots__ |
Undocumented |
orionis.support.performance.PerformanceCounterReturn the elapsed time in seconds asynchronously.
| Returns | |
float | Elapsed time in seconds as a float. |
| Raises | |
ValueError | If the counter has not been started and stopped properly. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in microseconds asynchronously.
| Returns | |
float | Elapsed time in microseconds as a float. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in milliseconds asynchronously.
| Returns | |
float | Elapsed time in milliseconds as a float. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in minutes asynchronously.
| Returns | |
float | Elapsed time in minutes as a float. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in seconds asynchronously.
| Returns | |
float | Elapsed time in seconds as a float. |
orionis.support.performance.PerformanceCounterRestart the performance counter asynchronously.
Resets internal timing attributes and starts the counter again in async mode.
| Returns | |
IPerformanceCounter | This instance for method chaining. |
orionis.support.performance.PerformanceCounterStart the performance counter asynchronously.
Records the current high-resolution time for an asynchronous measurement.
| Returns | |
IPerformanceCounter | The current instance for method chaining. |
orionis.support.performance.PerformanceCounterStop the performance counter asynchronously.
Records the current high-resolution time as the end time and computes the
elapsed time since astart() was called.
| Returns | |
IPerformanceCounter | This instance for method chaining. |
| Raises | |
RuntimeError | If called after synchronous start. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in seconds between the last start and stop calls.
| Returns | |
float | Elapsed time in seconds as a float. |
| Raises | |
ValueError | If the counter has not been started and stopped properly. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in microseconds.
Converts the elapsed time in seconds to microseconds.
| Returns | |
float | Elapsed time in microseconds. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in milliseconds.
Converts the elapsed time in seconds to milliseconds.
| Returns | |
float | Elapsed time in milliseconds as a float. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in minutes.
| Returns | |
float | Elapsed time in minutes as a float. |
orionis.support.performance.PerformanceCounterReturn the elapsed time in seconds.
| Returns | |
float | Elapsed time in seconds as a float. |
orionis.support.performance.PerformanceCounterRestart the performance counter.
Resets internal timing attributes and starts the counter again. Useful for measuring a new interval without creating a new instance.
| Returns | |
IPerformanceCounter | This instance for method chaining. |
orionis.support.performance.PerformanceCounterStart the performance counter.
Records the current high-resolution time as the start time.
| Returns | |
IPerformanceCounter | This instance for method chaining. |
orionis.support.performance.PerformanceCounterStop the performance counter and compute elapsed time.
Records the current high-resolution time as the end time and computes the
elapsed time since start() was called.
| Returns | |
IPerformanceCounter | The current instance for method chaining. |
| Raises | |
RuntimeError | If called after asynchronous start. |
ValueError | If called before start. |