OSDN Git Service

Small timestamps fixes
authorPatrick Porlan <patrick.porlan@intel.com>
Tue, 25 Nov 2014 08:50:10 +0000 (09:50 +0100)
committerPatrick Porlan <patrick.porlan@intel.com>
Tue, 25 Nov 2014 08:50:10 +0000 (09:50 +0100)
commit3dd743fc3b8ffcaf0afebdc114a44c671469dd53
tree94fdf83dc391a790b7b6be70dfe0ad2850a42411
parent9cf6760ae39480ed7fd2cab43e5a035948341b77
Small timestamps fixes

Swap the two clock_gettime calls we use to compute the offset
between realtime and boottime clock so there is no risk that
the timestamp appears in the future (e.g. if the calling thread
gets scheduled out between the calls).

Change-Id: Iad37015a873f7cf7c9b84d05a999eb42c0bb270a
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c