Check monitoring interval before getting histogram

Make sure that that if the interval is expired you return
a reset histogram and not the stale one.