This commit is contained in:
Your Name
2023-10-03 23:28:51 +02:00
parent 9a83c28137
commit 42f2899bbf
162 changed files with 9 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
package UEB01;
public class StopUhr
{
private long startTime, stopTime;
public void start()
{
startTime = System.nanoTime();
}
public void stop()
{
stopTime = System.nanoTime();
}
public long getDuration()
{
return stopTime - startTime;
}
}