minor refactoring, no functional changes
adding timing for multi-threaded case
Merge pull request #2013 from apavlenko:2.4_fd_sample