They have people in Toronto (I believe) looking at it during play, and they'll blow the end-of-period horn during play if they conclude it was a goal. Usually 30 seconds to 1min after it happens.
If it takes that long, usually means it wasn't a goal. I looked back at it myself, and it wasn't a goal
EDIT: if that's indeed what you were asking