// Caveat: a shared pointer is used (instead of simply using this) to ensure that this instance of TagSession is still alive when the call-back is called.
m_rKernelContext.getLogManager()<<Kernel::LogLevel_Info<<"New Tag received ("<<tag.padding<<", "<<tag.identifier<<", "<<tag.timestamp<<") at "<<posixTime<<" (posix time in ms)\n";
// Check that the timestamp fits the current chunk.
if(tag.timestamp<m_previousPosixTime){
m_rKernelContext.getLogManager()<<Kernel::LogLevel_Warning<<"The Tag has arrived before the beginning of the current chunk and will be inserted at the beginning of this chunk\n";
tag.timestamp=m_previousPosixTime;
}
// Marker time correction (simple local linear interpolation).