Timing code for sparse matrix generation.