If I connect an ACgenerator in parallel to the AC supply, how can I tell which way the current is flowing,?

I know an ammeter will show current, but on AC it won't show current direction. I need to know when the generator is drawing on the supply so it can be disconnected. I need to know when the generator is feeding the supply so it can be kept connected. It is a privately owned supply from another generator.
5 answers 5