add timer for performance measurements
add stub for optimized version