Fixes search time bug

Implement by use stopwatch class instead.