// Task start time
// This is a demo, so we are going to replace the prime processing times with the factorial processing times
taskInfo.setStartTime(new NSTimestamp(startTime));
// For demo purposes we will use batches and EC recycling, which would be common for processing huge data sets
ERXFetchSpecification<ResultItem> fs = taskInfo.fetchSpecificationForResultItems();
// Batch iterator
ERXFetchSpecificationBatchIterator fsIterator = new ERXFetchSpecificationBatchIterator(fs, ec);
// Loop for a period of time