[sample/detect-from-file] Display total time

Note that the time is printed on `std::cerr`, which ensure that `detect_from_file` output can still be piped into another process as previously.

While here, read the source image directly in grayscale