]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbsupport: move run_time_clock::now(user, system) out of run_time_clock
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 17 Apr 2025 19:23:52 +0000 (15:23 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 29 Apr 2025 19:10:11 +0000 (15:10 -0400)
commitf7a4e14a0b3543c28e26160c39c6154695b92536
treebd6d1dbc236689b61eb60cb8813f6e95a140d451
parent48d0ac705c45cb588a8e6d19ee911bc225c897cf
gdbsupport: move run_time_clock::now(user, system) out of run_time_clock

It is completely unrelated to run_time_clock, so I don't think it makes
sense to have it as a static function there.

Move it to be a free function named "get_run_time".

Change-Id: I0c3e4d3cc44ca37e523c94d72f7cd66add95645e
Approved-By: Tom Tromey <tom@tromey.com>
gdb/mi/mi-main.c
gdbsupport/run-time-clock.cc
gdbsupport/run-time-clock.h