lib/munit.js
function( time ) {
		var h, m, s;

		if ( time > TIME_MINUTE ) {
			m = parseInt( time / TIME_MINUTE, 10 );
			s = ( time % TIME_MINUTE ) / TIME_SECOND;
			return m + 'mins, ' + s + 's';
		}
		else if ( time > TIME_SECOND ) {
			return ( time / TIME_SECOND ) + 's';
		}
		else {
			return time + 'ms';
		}
	}
function( time ) {
		var h, m, s;

		if ( time > TIME_MINUTE ) {
			m = parseInt( time / TIME_MINUTE, 10 );
			s = ( time % TIME_MINUTE ) / TIME_SECOND;
			return m + 'mins, ' + s + 's';
		}
		else if ( time > TIME_SECOND ) {
			return ( time / TIME_SECOND ) + 's';
		}
		else {
			return time + 'ms';
		}
	}
function ( time ) { var h , m , s ; if ( time > TIME_MINUTE ) { m = parseInt ( time / TIME_MINUTE , 10 ) ; s = ( time % TIME_MINUTE ) / TIME_SECOND ; return m + 'mins, ' + s + 's' ; } else if ( time > TIME_SECOND ) { return ( time / TIME_SECOND ) + 's' ; } else { return time + 'ms' ; } }
Better timestamp readability
Better timestamp readability