Log how long it takes for the getDocument() to complete

Was trying something to see if I could make `Lexer.getNumber()` faster. That didn't work out, but coded up this as a consequence.