Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

enigma-machine

A simple stopwatch

Example:

stopwatch.start();
if(stopwatch.isRunning())
System.out.println("Stopwatch started");
//... do something
stopwatch.stop();
if(!stopwatch.isRunning())
System.out.println("Stop");
System.out.println("Elapsed time: " + stopwatch);
System.out.println("in nanoseconds: " + stopwatch.nanosecondsElapsed());
System.out.println("in milliseconds: " + stopwatch.millisecondsElapsed());
System.out.println("in seconds: " + stopwatch.secondsElapsed());
System.out.println("in minutes: " + stopwatch.minutesElapsed());
stopwatch.reset();

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages