Is God’s Timing Perfect?

We hear the phrase, “God’s timing is perfect,” when there is a tragedy with an unfortunate outcome. To comfort ourselves, we say, “God’s timing is perfect.” 

What does that mean? That God knew exactly when to end the life of someone? That He knew that by the death of a loved one, the family would come together and heal? 

What does it mean when people say, “God’s timing is perfect?”

Does it mean that God’s timing is ironic? That God’s timing is one of judgment and punishment? Or does it mean that it is one of public reward or provision? Of course, this comment has the flip side towards the positive outcome of things.