Add stopwatch_t for precise wallclock measurement
commit8ee106b96f359e4491128a4081824a5a3f07983b
authorVojtech Horky <vojtech.horky@gmail.com>
Fri, 21 Dec 2018 18:01:07 +0000 (21 19:01 +0100)
committerVojtech Horky <vojtech.horky@gmail.com>
Fri, 28 Dec 2018 09:31:59 +0000 (28 10:31 +0100)
tree07e0d1819b719c6cb40d4f0f42cdf9a307d4eacb
parenta49c39c8a94bc5c772b245c997c4b70ea1acf6c7
Add stopwatch_t for precise wallclock measurement

The idea is to introduce system API for precise wall-clock measurement
early on even if the implementation is suboptimal. This API will always
be only a tiny wrapper around the best-possible time source but it
would hide the implementation details.
uspace/lib/c/Makefile
uspace/lib/c/include/perf.h [new file with mode: 0644]
uspace/lib/c/test/main.c
uspace/lib/c/test/perf.c [copied from uspace/lib/c/test/main.c with 51% similarity]