langchain_core.tracers.stdout.elapsed¶

langchain_core.tracers.stdout.elapsed(run: Any) str[source]¶

Get the elapsed time of a run.

Parameters

run (Any) – any object with a start_time and end_time attribute.

Returns

A string with the elapsed time in seconds or

milliseconds if time is less than a second.

Return type

str