plugins/restiming.js
/**
	 * Trims the timing, returning an offset from the startTime in ms
	 *
	 * @param [number] time Time
	 * @param [number] startTime Start time
	 * @return [number] Number of ms from start time
	 */
Trims the timing, returning an offset from the startTime in ms
@param [number] time Time
@param [number] startTime Start time
@return [number] Number of ms from start time
Trims the timing returning an offset from the startTime in ms @param [ number ] time Time @param [ number ] startTime Start time @return [ number ] Number of ms from start time
function trimTiming(time, startTime) {
		if (typeof time !== "number") {
			time = 0;
		}
		if (typeof startTime !== "number") {
			startTime = 0;
		}
		var timeMs = Math.round(time ? time : 0),
		    startTimeMs = Math.round(startTime ? startTime : 0);
		return timeMs === 0 ? 0 : (timeMs - startTimeMs);
	}
function trimTiming ( time , startTime ) { if ( typeof time !== "number" ) { time = 0 ; } if ( typeof startTime !== "number" ) { startTime = 0 ; } var timeMs = Math . round ( time ? time : 0 ) , startTimeMs = Math . round ( startTime ? startTime : 0 ) ; return timeMs === 0 ? 0 : ( timeMs - startTimeMs ) ; }
Trims the timing, returning an offset from the startTime in ms
 @param [number] time Time
 @param [number] startTime Start time
 @return [number] Number of ms from start time
Trims the timing returning an offset from the startTime in ms @param [ number ] time Time @param [ number ] startTime Start time @return [ number ] Number of ms from start time
// strip from microseconds to milliseconds only