From 2b71414df9c47e9a1deca9885bf59ecbfa82a0ad Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 2 Aug 2005 03:02:05 +0000 Subject: Suggested by Shaun Jackman : * defs.h (print_transfer_performance): Update prototype. * m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday for print_transfer_performance. * remote-m32r-sdi.c (m32r_load): Likewise. * symfile.c (generic_load): Likewise. (report_transfer_performance): Create a dummy struct timeval. (print_transfer_performance): Use a more accurate measure of performance. --- gdb/defs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index 7548455..1880bc0 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -552,10 +552,12 @@ extern void symbol_file_command (char *, int); extern void generic_load (char *name, int from_tty); /* Summarise a download */ +struct timeval; extern void print_transfer_performance (struct ui_file *stream, unsigned long data_count, unsigned long write_count, - unsigned long time_count); + const struct timeval *start_time, + const struct timeval *end_time); /* From top.c */ -- cgit v1.1