| 2729 | |
| 2730 | #ifndef SFCTOOL |
| 2731 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 2732 | |
| 2733 | /* to support '#stats' wizard-mode command */ |
| 2734 | void |
| 2735 | timer_stats(const char *hdrfmt, char *hdrbuf, long *count, long *size) |
| 2736 | { |
| 2737 | timer_element *te; |
| 2738 | |
| 2739 | Sprintf(hdrbuf, hdrfmt, (long) sizeof (timer_element)); |
| 2740 | *count = *size = 0L; |
| 2741 | for (te = gt.timer_base; te; te = te->next) { |
| 2742 | ++*count; |
| 2743 | *size += (long) sizeof *te; |
| 2744 | } |
| 2745 | } |
| 2746 | |
| 2747 | RESTORE_WARNING_FORMAT_NONLITERAL |
| 2748 |