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

elapsed() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5d7f68be_71bd_d246_ef7d_d2977db81101["elapsed()"]
  6ba97a89_3a56_ffff_f6de_ddab1cb32b30["BaseAPIResponse"]
  5d7f68be_71bd_d246_ef7d_d2977db81101 -->|defined in| 6ba97a89_3a56_ffff_f6de_ddab1cb32b30
  style 5d7f68be_71bd_d246_ef7d_d2977db81101 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_response.py lines 109–111

    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/_response.py.
Where is elapsed() defined?
elapsed() is defined in src/anthropic/_response.py at line 109.

Analyze Your Own Codebase

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

Try Supermodel Free