File: //usr/lib/python3/dist-packages/sphinx/ext/__pycache__/duration.cpython-310.pyc
o
$�a� � @ s d Z ddlmZmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZ ddlm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ e�e�ZG dd� de�Zd
eddfdd�Zd
edede
e ddfdd�Zd
ede
jddfdd�Zd
ededdfdd�Z d
ede eef fdd�Z!dS )z�
sphinx.ext.duration
~~~~~~~~~~~~~~~~~~~
Measure durations of Sphinx processing.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�datetime� timedelta)�islice)�
itemgetter)�Any�Dict�List�cast)�nodes)�Sphinx)�Domain)�__)�loggingc @ s~ e Zd ZdZdZedeeef fdd��Z deddfdd�Z
dd d
�Zdeddfdd
�Zde
e deeef ddfdd�ZdS )�DurationDomainz,A domain for durations of Sphinx processing.�duration�returnc C s | j �di �S )N�reading_durations)�data�
setdefault��self� r �5/usr/lib/python3/dist-packages/sphinx/ext/duration.pyr s z DurationDomain.reading_durationsNc C s || j | jj<