sonar/testbench.py
def enable_timestamps(self, prefix, index):
        """
        Each subsequent command (until disabled) will print the time after it finishes
        with the given prefix and an index which starts at the provided one.

        Args:
            prefix (str): String to prefix the timestamp with
            index (int): Integer to start indexing the timestamps at
        """

        self._enable_timestamps = True
        self.timestamp_prefix = prefix
        self.timestamp_index = index
        self.commands.append({"timestamp": prefix + str(index)})
        self.timestamp_index += 1

        Each subsequent command (until disabled) will print the time after it finishes
        with the given prefix and an index which starts at the provided one.

        Args:
            prefix (str): String to prefix the timestamp with
            index (int): Integer to start indexing the timestamps at
        
Each subsequent command (until disabled) will print the time after it finishes
with the given prefix and an index which starts at the provided one.
Each subsequent command ( until disabled ) will print the time after it finishes with the given prefix and an index which starts at the provided one .
def enable_timestamps(self, prefix, index):
        self._enable_timestamps = True
        self.timestamp_prefix = prefix
        self.timestamp_index = index
        self.commands.append({"timestamp": prefix + str(index)})
        self.timestamp_index += 1
def enable_timestamps ( self , prefix , index ) : self . _enable_timestamps = True self . timestamp_prefix = prefix self . timestamp_index = index self . commands . append ( { "timestamp" : prefix + str ( index ) } ) self . timestamp_index += 1
Each subsequent command (until disabled) will print the time after it finishes
with the given prefix and an index which starts at the provided one.
Each subsequent command ( until disabled ) will print the time after it finishes with the given prefix and an index which starts at the provided one .
"""
        Each subsequent command (until disabled) will print the time after it finishes
        with the given prefix and an index which starts at the provided one.

        Args:
            prefix (str): String to prefix the timestamp with
            index (int): Integer to start indexing the timestamps at
        """
self
prefix
String to prefix the timestamp with
String to prefix the timestamp with
index
Integer to start indexing the timestamps at
Integer to start indexing the timestamps at