Jump to content

Topic pentru discutii


Dyablox
 Share

Recommended Posts

On 6/19/2018 at 8:50 PM, rTn Dyablox VIP said:

Uite ba @Krampus ca ti-au gasit astia si argument :)) 

 

imgur.

 

Neata echipa, sa aveti o zi frumoasa.

Stiu din 2011-2012 de imgur, doar ca in urma cu ceva ani si-a dat un update si nu mai pot da o imagine fara sa apara linkul. Eu vreau sa apara doar poza si atat.

Link to comment
Share on other sites

Las asta aici:

public class Lag implements Runnable {
	
	public static int TICK_COUNT = 0;
	public static long[] TICKS = new long[600];
	public static long LAST_TICK = 0L;
	
	public static double getTPS() {
		
		return getTPS(100);
		
	}
	
	public static double getTPS(int ticks) {
		if (TICK_COUNT < ticks) {
			return 20.0D;
		}
		int target = (TICK_COUNT- 1 - ticks) % TICKS.length;
		long elapsed = System.currentTimeMillis() - TICKS[target];
		
		return ticks / (elapsed / 1000.0D);
		
	}
	
	public static long getElapsed(int tickID) {
		
		if(TICK_COUNT- tickID >= TICKS.length) {	
		}
		
		long time = TICKS[tickID % TICKS.length];
		
		return System.currentTimeMillis() - time;
		
	}

	public void run() {
		TICKS[(TICK_COUNT% TICKS.length)] = System.currentTimeMillis();
		
		TICK_COUNT += 1;
	}
	
}

 

Link to comment
Share on other sites

Just now, V i d i r i c said:

Undi discuta despre moartea lui X si eu fac un topic in health sa se stie cum se poate supravietui o gaura in plaman cauzata de un glont/cutit.

Aham, am înțeles. :))

Link to comment
Share on other sites

3 minutes ago, V i d i r i c said:

Poti sa te uiti. Am discutat acolo cazurile ce se pot intampla si cum sa le rezolvi asa, pe scurt.

Am văzut.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.