I am using (an adapted version of) gdb on Ubuntu to debug an embedded system we have connected through the USB port using gdbserver.
The benchmark program in question is tested against a native compilation on the Linux machine. For the native run I can use the time command to get a convinient time measurement of the run:
> time ./prog.e
Can I use a similar mechanism in gdb? For example, to measure time until the next breakpoint, something like:
(gdb) time c