X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmain.C;h=472578718657664d7b230ca445cd08622e8c7931;hp=e67dd2f4b5a8b30a182a1f65eb1e178c5242cf18;hb=a19a685a46ddc630010788707d9e5b9d2342af46;hpb=214bd0ba9e21635e03d0c0e2b2ae1a7e9170583c diff --git a/cinelerra-5.1/cinelerra/main.C b/cinelerra-5.1/cinelerra/main.C index e67dd2f4..47257871 100644 --- a/cinelerra-5.1/cinelerra/main.C +++ b/cinelerra-5.1/cinelerra/main.C @@ -100,6 +100,7 @@ public: ArrayList *filenames; }; +long cin_timezone; int main(int argc, char *argv[]) { @@ -108,6 +109,12 @@ int main(int argc, char *argv[]) ArrayList filenames; FileSystem fs; + time_t st; time(&st); + struct tm ltm, gtm; + localtime_r(&st, <m); + gmtime_r(&st, >m); + 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; }