The hn api usually returns in less than 0.25 seconds, but occasionally I'm getting huge latency spikes. A quick timeout and retry solves that for me. If you are using this tool with a very high baseline ping, 2s may be too aggressive.
Probably a result of moderator actions, I found that items with a lower id could have a higher timestamp, enough to offset it by 2,000 ids.