Tag Archives: time

Java and time with Processing

Instead of using the Processing millis() function or the Java Timer class, we can also make use of the relatively new Instant and Duration classes in Java 8. Here is one simple example for demonstration. The program uses 2 Instant variables: start, end. It computes the time duration between them using the Duration.between() function. import […]

Posted in Testing | Also tagged , | Comments closed