def timeReport(self):
        from operator import itemgetter
        import numpy
        thresholdLink = {}
        linktimes = []
        for (url, rd_obj) in self.results.items():
            duration = rd_obj.get_duration()
            linktimes.append(duration)
            if duration > self.threshold:
                thresholdLink[url] = duration
        self.reporter("Time Analysis - Links beyond threshold")
        for (visited_url, duration) in sorted(thresholdLink.iteritems(),
                                              key=itemgetter(1),
                                              reverse=True):
            self.reporter( (visited_url, duration) % "%s took %.3f seconds")

        self.reporter("Time Analysis - summary")
        total = len(linktimes)
        average = numpy.mean(linktimes)
        std = numpy.std(linktimes)
        msg = "%s links visited with an average time of %.3f and standard deviation of %.3f" % (total, average, std)
        self.reporter(msg)
dataset/ETHPy150Open sahana/eden/modules/tests/smoke/broken_links.py/BrokenLinkTest.timeReport/swapped operands of `%`