The cooking time for BBQ salmon depends on the Thickness of the Salmon but it should only take at most 15 to 20 minutes to fully cook the salmon wrapped in foil on the BBQ.
Salmon can be eaten without cooking so as long as it looks done enough to you then it's good enough to eat.
I like to cook my Salmon on the BBQ for 15 minutes which cooks it enough to my tastes.