- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for perf_counter (0.11 sec)
-
docs/en/docs/tutorial/middleware.md
{* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *} /// tip Here we use <a href="https://docs.python.org/3/library/time.html#time.perf_counter" class="external-link" target="_blank">`time.perf_counter()`</a> instead of `time.time()` because it can be more precise for these use cases. π€ /// ## Multiple middleware execution order { #multiple-middleware-execution-order }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/uk/docs/tutorial/middleware.md
{* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *} /// tip | ΠΡΠ΄ΠΊΠ°Π·ΠΊΠ° Π’ΡΡ ΠΌΠΈ Π²ΠΈΠΊΠΎΡΠΈΡΡΠΎΠ²ΡΡΠΌΠΎ <a href="https://docs.python.org/3/library/time.html#time.perf_counter" class="external-link" target="_blank">`time.perf_counter()`</a> Π·Π°ΠΌΡΡΡΡ `time.time()` ΠΎΡΠΊΡΠ»ΡΠΊΠΈ Π²ΡΠ½ ΠΌΠΎΠΆΠ΅ Π±ΡΡΠΈ Π±ΡΠ»ΡΡ ΡΠΎΡΠ½ΠΈΠΌ Π΄Π»Ρ ΡΠ°ΠΊΠΈΡ Π²ΠΈΠΏΠ°Π΄ΠΊΡΠ². π€ /// ## ΠΠ½ΡΡ middlewares
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri May 30 13:35:33 UTC 2025 - 4.9K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* π Add note about `time.perf_counter()` in middlewares. PR [#12095](https://github.com/fastapi/fastapi/pull/12095) by [@tiangolo](https://github.com/tiangolo). * π Tweak middleware code sample `time.time()` to `time.perf_counter()`. PR [#11957](https://github.com/fastapi/fastapi/pull/11957) by [@domdent](https://github.com/domdent).
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0)