scripts: time.pl: avoid hard Time::HiRes dependency
authorJo-Philipp Wich <jo@mein.io>
Sun, 5 Aug 2018 10:24:01 +0000 (12:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 5 Aug 2018 10:24:01 +0000 (12:24 +0200)
commita692e4e3de60e1a10906511fb8ef2d14937d4a19
treeff95d6a7a1320bbed392d115fc894bbf5a7db052
parentd3ddf6631e491a831617a5ae8b3d7924e47a275a
scripts: time.pl: avoid hard Time::HiRes dependency

Use Time::HiRes when available and fallback to raw syscall interface
when not. If that fails too, simply report 0, 0 as real time.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
scripts/time.pl