olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / cinelerra / main.C
index e67dd2f4b5a8b30a182a1f65eb1e178c5242cf18..472578718657664d7b230ca445cd08622e8c7931 100644 (file)
@@ -100,6 +100,7 @@ public:
        ArrayList<char*> *filenames;
 };
 
+long cin_timezone;
 
 int main(int argc, char *argv[])
 {
@@ -108,6 +109,12 @@ int main(int argc, char *argv[])
        ArrayList<char*> filenames;
        FileSystem fs;
 
+       time_t st; time(&st);
+       struct tm ltm, gtm;
+       localtime_r(&st, &ltm);
+       gmtime_r(&st, &gtm);
+       int tzofs = ltm.tm_hour - gtm.tm_hour;
+       cin_timezone = tzofs * 60*60;
 
        int operation = DO_GUI;
        int deamon_port = DEAMON_PORT;
@@ -262,7 +269,7 @@ int main(int argc, char *argv[])
                        printf(_("%s [-f] [-c configuration] [-d port] [-n nice] [-r batch file] [filenames]\n\n"), argv[0]);
                        printf(_("-d = Run in the background as renderfarm client.  The port (400) is optional.\n"));
                        printf(_("-f = Run in the foreground as renderfarm client.  Substitute for -d.\n"));
-                       printf(_("-n = Nice value if running as renderfarm client. (20)\n"));
+                       printf(_("-n = Nice value if running as renderfarm client. (19)\n"));
                        printf(_("-c = Configuration file to use instead of %s/%s.\n"),
                                File::get_config_path(), CONFIG_FILE);
                        printf(_("-r = batch render the contents of the batch file (%s/%s) with no GUI.  batch file is optional.\n"),
@@ -376,6 +383,9 @@ DISABLE_BUFFER
        filenames.remove_all_objects();
        Units::finit();
 
+       time_t et; time(&et);
+       long dt = et - st;
+       printf("Session time: %ld:%02ld:%02ld\n", dt/3600, dt%3600/60, dt%60);
        return 0;
 }