Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for perf_counter (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top