This example uses the matrix code from the previous example, but creates a UI for calling it. Set the size of the random square matrix to be created and click Go. When the matrix has been created it will be displayed at upper left, and the elapsed time (for calculations and drawing commands) will be shown. The matrix inverse and two products will then be calculated and displayed, and the total elapsed time shown. These times are just in the js code, and do not include window rendering, events, other threads, etc... At present no explicit coding is performed to support threading, and the calculate/render cycles are just separated with 2 setTimeout calls.