Report timing information. Returns: dict: The key is the timer name and the value is the \ corresponding average time consuming.
(self, key=None)
| 784 | self._record[timer_name].update(timer.since_start()) |
| 785 | |
| 786 | def report(self, key=None): |
| 787 | """Report timing information. |
| 788 | |
| 789 | Returns: |
| 790 | dict: The key is the timer name and the value is the \ |
| 791 | corresponding average time consuming. |
| 792 | """ |
| 793 | result = { |
| 794 | name: r.average() * 1000. |
| 795 | for name, r in self._record.items() |
| 796 | } |
| 797 | |
| 798 | if '_FPS_' in result: |
| 799 | result['_FPS_'] = 1000. / result.pop('_FPS_') |
| 800 | |
| 801 | if key is None: |
| 802 | return result |
| 803 | return result[key] |
| 804 | |
| 805 | def report_strings(self): |
| 806 | """Report timing information in texture strings. |
no test coverage detected