timing code: running mcmc and printing output for each chain