java 8 – writing a timer

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

January 2017
M T W T F S S
« Dec    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

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