java 8 – writing a timer

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

August 2014
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Past Posts

Java/Java EE

JDBC

Other

Archive for August 9th, 2014

java 8 – writing a timer

August 9th, 2014 by Jeanne Boyarsky

A member at CodeRanch asked a question that prompted me to write a qucik program to determine which of two String operations were faster. This is the first time my instinct was to use Java 8 functionality to do it. The interesting features: Uses Instant and Duration instead of System.currentTimeMillis(). Uses functional programming to pass […]