Added a simple LatencyStatsDemo class as an example