Home / Function/ elapsed() — anthropic-sdk-python Function Reference

elapsed() — anthropic-sdk-python Function Reference

Architecture documentation for the elapsed() function in _legacy_response.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  23c77efd_b202_86ec_94ba_39f57bef1301["elapsed()"]
  0eaa35b2_72d4_9c3a_4c4e_21c6bfcb945e["LegacyAPIResponse"]
  23c77efd_b202_86ec_94ba_39f57bef1301 -->|defined in| 0eaa35b2_72d4_9c3a_4c4e_21c6bfcb945e
  style 23c77efd_b202_86ec_94ba_39f57bef1301 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_legacy_response.py lines 195–197

    def elapsed(self) -> datetime.timedelta:
        """The time taken for the complete request/response cycle to complete."""
        return self.http_response.elapsed

Subdomains

Frequently Asked Questions

What does elapsed() do?
elapsed() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_legacy_response.py.
Where is elapsed() defined?
elapsed() is defined in src/anthropic/_legacy_response.py at line 195.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free