Use `Duration` based uptime across uucore
Closes #7851
Changes the i64 based uptime returned by uucore's get_uptime into an std::time::Duration and updates callsites.
- [x]
get_uptimemodified to accept fractional seconds from/proc/uptimeand returnDuration - [x] Callsites in
uucore/.../features/uptime.rsanduu/.../uptime.rsuse Duration
you probably noticed that a few jobs are failing
you probably noticed that a few jobs are failing
Oh yes, just getting a draft PR on the issue now while I work on it, this commit won't build yet. I'll mark ready for review when it's good enough to look at.
This PR depends on the changes in #7910 so once that is merged I can rebase this branch on main.
GNU testsuite comparison:
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
I think 177fae1208c77814c57b2fb045f7b470241c0b8f looks good, would it be possible to rebase just that commit on main? (arguably this is more important than --pretty parameter that's technically an extension)
it has been draft for a long time, please reopen when ready