Skip to content

Instantly share code, notes, and snippets.

@gatoatigrado
Created December 23, 2017 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gatoatigrado/168b7f7d820c2ef9522f2d9f3a677578 to your computer and use it in GitHub Desktop.
Save gatoatigrado/168b7f7d820c2ef9522f2d9f3a677578 to your computer and use it in GitHub Desktop.
rawtherapee benchmark hack
diff --git a/rtengine/StopWatch.h b/rtengine/StopWatch.h
index 9e4400b..4a4ca65 100644
--- a/rtengine/StopWatch.h
+++ b/rtengine/StopWatch.h
@@ -19,6 +19,7 @@
* Author: reine
*/
+#define BENCHMARK
#ifndef STOPWATCH_H
#define STOPWATCH_H
#include <iostream>
diff --git a/rtgui/main-cli.cc b/rtgui/main-cli.cc
index 1d1917e..71213d8 100644
--- a/rtgui/main-cli.cc
+++ b/rtgui/main-cli.cc
@@ -477,7 +477,7 @@ int processLineParams ( int argc, char **argv )
bool notAll = allExtensions && !options.is_parse_extention (argument);
bool notRetained = !allExtensions && !options.has_retained_extention (argument);
- if (notAll || notRetained) {
+ if (notAll) {
if (notAll) {
std::cout << "\"" << argument << "\" is not one of the file format to process: skipped" << std::endl;
} else if (notRetained) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment