Skip to content

diegodc/stopwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages