[LEDE-DEV] [PATCH v3] procd: add timing to start/stop logging

2018-01-17 Thread Karl Vogel
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 --- rcS.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rcS.c b/rcS.c index dd3b76d..c2e1abb 100644

Re: [LEDE-DEV] [PATCH v2] procd: add timing to start/stop logging

2018-01-17 Thread Karl Vogel
John Crispin writes: > On 17/01/18 10:54, Koen Vandeputte wrote: >> >> >> On 2018-01-17 10:43, Karl Vogel wrote: >>> Shows how long an initd task took, for example: >>> >>> procd: stop /etc/init.d/dropbear running - took 0.088824s >>>

[LEDE-DEV] [PATCH v2] procd: add timing to start/stop logging

2018-01-17 Thread Karl Vogel
running - took 0.092586s Signed-off-by: Karl Vogel --- rcS.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rcS.c b/rcS.c index dd3b76d..acfb6a0 100644 --- a/rcS.c +++ b/rcS.c @@ -37,6 +37,7 @@ static struct runqueue q, r; struct initd { struct ustream_fd fd

[LEDE-DEV] [PATCH] procd: add timing to start/stop logging

2018-01-16 Thread Karl Vogel
/dnsmasq running - took 0.092586 us Signed-off-by: Karl Vogel --- rcS.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rcS.c b/rcS.c index dd3b76d..59c9038 100644 --- a/rcS.c +++ b/rcS.c @@ -37,6 +37,7 @@ static struct runqueue q, r; struct initd { struct ustream_fd