procd: add timing to start/stop logging
authorKarl Vogel <karl.vogel@gmail.com>
Wed, 17 Jan 2018 11:13:15 +0000 (12:13 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 22 Jan 2018 11:42:49 +0000 (12:42 +0100)
commit846e20cb655dd255e4caec2d1fe2628af35639e8
tree99c8aec75a43a72f66474e781685bb0aab9974f1
parenta5954cf302fe46d8e29770c818336763112b9a6e
procd: add timing to start/stop logging

Shows how long an initd task took, for example:

 procd: stop /etc/init.d/dropbear running - took 0.088824s
 procd: Update service dnsmasq
 procd: Update instance dnsmasq::dnsmasq
 procd: running /etc/init.d/dnsmasq running
 procd: start /etc/init.d/dnsmasq running
 procd: stop /etc/init.d/dnsmasq running - took 0.092586s

 v2: rename variables, correct time unit
 v3: use CLOCK_MONOTONIC_RAW to prevent issues with NTP and adjtime

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
rcS.c