java 8 – writing a timer

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

March 2017
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "timer"

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 […]