in a flash

[in a flash] also [in a trice] {adv. phr.} Very suddenly.

Wewere watching the bird eat the crumbs; then I sneezed, and he was gonein a flash.

Bob was looking over his notes for English class andin a flash he knew what he would write his paper about.