A minimal library for throttling cirtical events