All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.distributeme.goldminer.SynchGoldSearcher Maven / Gradle / Ivy

package org.distributeme.goldminer;

import org.distributeme.core.ServiceLocator;

public class SynchGoldSearcher {
	public static void main(String[] args) throws Exception{
		GoldMinerService service = ServiceLocator.getRemote(GoldMinerService.class);
		long start = System.currentTimeMillis();
		int searchTime = 60;
		System.out.println("Searching for gold for "+searchTime+" seconds");
		long endTime = start + 1000L*searchTime;
		long now;
		int foundGold = 0;
		int attempts = 0;
		while ((now = System.currentTimeMillis())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy