* clock_gettime monotonic & realtime swapped?
@ 2010-05-28 15:20 Markus Oberrauter
0 siblings, 0 replies; only message in thread
From: Markus Oberrauter @ 2010-05-28 15:20 UTC (permalink / raw)
To: xen-devel
Hi all,
we are currently having a lot of problems with our virtualized server (
time jumps 73 minutes backwards ).
I tried to find out how virtualization affects the clock of the client,
so I´ve downloaded the current xen source ( xen-4.0.0 ) and searched all
files for "clock".
I don´t think that this will be the cause of our problems here, but I
found an interesting switch - case statement in extras \ mini-os \ lib \
sys.c.
int clock_gettime(clockid_t clk_id, struct timespec *tp)
{
...
case CLOCK_MONOTONIC:
gettimeofday(&tv, NULL);
break;
case CLOCK_REALTIME:
uint64_t nsec = monotonic_clock();
break;
...
}
I had expected that CLOCK_MONOTONIC returns monotonic_clock and
CLOCK_REALTIME returns gettimeofday().
I hope this was the right place to post this information.
Greetings,
Markus Oberrauter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-28 15:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 15:20 clock_gettime monotonic & realtime swapped? Markus Oberrauter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.