check metrics' timestamp

avoid calculate wrong data