Reading a variable set in an ISR, or using millis() for time within while loop?

Post your code showing the things you've tried. Use code tags.