resolving memoty leak connected with boost chrono