Oh, I wonder if this is the one I've been trying to think of, for years!
@Galexyz, was the MC a scientist, and did the viewing of these future events often happen in his lab? In the one I read (about 15-20 years ago!), I think the MC could view the outcomes of any action he took, and thus avoid the bad outcomes, and they optimized their future by selecting only the outcomes to their actions that gave them the results they desired. It was a path to personal power and wealth, maybe ... I don't think the future-choices were for the benefit of humanity (but I could be wrong). There may have been political intrigue when others wanted to steal the technology from the MC for their own nefarious purposes. I think sometimes the events the MC wanted to alter were many days in the future, but sometimes they were just moments in the future - for example, if the MC was going to be attacked, they may have wanted to look seconds ahead to see the one possible alternate future that would prevent their own death.
I've been wondering about this book for years, but I honestly cannot remember any other details (and I'm not 100% sure this is the same book, though it sounds very similar). Hope someone can help Galexyz.
edit: after seeing Danny's response, I am now uncertain as to whether it was scientific, or psionic, abilities that allowed the MC to see the future....but I swear there were scenes set in a lab...