All men struggle with reality it could be anything (persecution,loss of job sickness,death,confrontation,etc.)this is a time where everyone choose a way to endure and get or wait an outcome .
David knew that God was his source of salvation so he chose to pray. Yes he confessed God as his refuge,strength,and trust but this is not precisely a praise of resolution or victory (remember Jesus in Mount of Olives).Those are moments of inner struggle.
True is we must develop a sense of what is truly real .Just as David did.