amb::Timestamp::currentTime() should return the 'current' time and it is
converted to the local time. However, currentTime() uses steady_clock
instead of system_clock so it always returns the lower epoch value than
the real one. This patch revises the value by adding startTimeEpoch.
Change-Id: Ibe6e445e398642e663b130c6185eae989764f2a3
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
double time = std::chrono::duration_cast<std::chrono::milliseconds>(tm.time_since_epoch()).count() / 1000.00;
- return time;
+ return time + startTimeEpoch;
}
double amb::Timestamp::epochTime(double time)