def add_database_transaction(self, duration_ms):
        self.db_txn_count += 1
        self.db_txn_duration += duration_ms / 1000.
dataset/ETHPy150Open matrix-org/synapse/synapse/util/logcontext.py/LoggingContext.add_database_transaction/original