2022-12-04 13:25:34 -05:00
2026-01-26 18:20:59 -05:00
2022-07-30 15:46:33 -04:00
2019-03-02 14:38:57 -05:00
2026-01-26 18:30:28 -05:00
2026-01-26 18:18:09 -05:00
2022-06-26 12:50:50 -04:00
2022-06-26 15:20:04 -04:00

JavaClasses

Quality Gate Status

This is a set of classes and functions, not part of the standard library, that I have found it helpful to keep around.

Stopwatch

This is a class that allows you to determine the execution time of an algorithm. You can get specific resolutions of time through their own get functions, all of which return double. However I have built it a function, getStr(), that automatically chooses the best resolution and returns both the number and resolution as a string.

	Stopwatch timer = new Stopwatch();
	timer.start();
	//Code to time here
	timer.stop();
	System.out.printf("It took %s to run this algorithm", timer.getStr());
	//You could also do something like this if you prefered
	System.out.printf("It took %f milliseconds to run this algorithm", timer.getMilli());

Algorithms

This is a class that contains many different algorithms that I have found it useful to keep around. This is used extensively in my Project Euler project. All methods are overloaded to allow for using Integer, Long, and BigInteger types.

Description
No description provided
Readme 242 KiB
v1.4.1 Latest
2026-01-26 18:31:01 -05:00
Languages
Java 100%