I needed uptime in a particular format (seconds), and threw together few different versions while I was at it.
I put the day/hour/minute/seconds code from ampsig back into uptime.c so now there's a formatted version, too, which outputs "days,hours,minute,seconds" to stdout, saves calculating at the other end.
Help Yourself!
;o) Cor