Can you force a redraw of a board & pieces?

I have a command which moves a number of pieces around on a board.
it appears to take a long time, but actually if you click on the board it will immediately update.

so is there some way to force a refresh / draw of the board programmatically?