1f9efecd4a
Optimizing trace period to use std::threads as well as std::chrono sleep instead of sleep and usleep and catching up corner cases for ending before the trace period duration and some cosmetic clean up Change-Id: Ia99f346bf71a3faad5dfdfc8d7a08f6c2b2cc0b9