Add get_absolute_time() syscall + implement std::chrono::steady_clock::now() using it.
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Fri, 20 Feb 2015 16:46:17 +0000 (17:46 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 9 Mar 2015 14:36:21 +0000 (15:36 +0100)
commit4713b669365f25dcd518a86ec3702ccff9cdb175
treecfd75f4e813e7c3df4dea307fcffcc9c77b582d3
parent1feaac5a7c9e7e82ccf3bd6ec458779ea8f7172e
Add get_absolute_time() syscall + implement std::chrono::steady_clock::now() using it.

This addresses T64.  Needs revising and more work to make it available on
architectures other than x86_64.

This may not quite satisfy the requirements mandated for
std::chrono::steady_clock, but is good enough to make steady_clock workable
for code that needs to work with millisecond precision durations.

Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>
include/barrelfish/syscalls.h
include/barrelfish_kpi/syscalls.h
kernel/arch/x86_64/syscall.c
kernel/include/syscall.h
kernel/syscall.c
lib/barrelfish/arch/x86_64/syscalls.c
lib/cxx/cxx/chrono.cpp
usr/tests/cxx/Hakefile
usr/tests/cxx/cxxtest.hpp
usr/tests/cxx/stl_chrono.cpp [new file with mode: 0644]
usr/tests/cxx/test.cpp