projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r138: *** empty log message ***
[ctsim.git]
/
src
/
if-2.cpp
diff --git
a/src/if-2.cpp
b/src/if-2.cpp
index cbf0e79c44c3f695e7f6b897ed0e8331cc883dbc..545920ad0d74475310afc64ef449a6dd2e05d3bf 100644
(file)
--- a/
src/if-2.cpp
+++ b/
src/if-2.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if-2.cpp,v 1.
8 2000/06/26 21:15:2
4 kevin Exp $
+** $Id: if-2.cpp,v 1.
9 2000/06/28 15:25:3
4 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-30,6
+30,7
@@
*/
#include "ct.h"
*/
#include "ct.h"
+#include "timer.h"
enum {O_ADD, O_SUB, O_MUL, O_COMP, O_VERBOSE, O_HELP, O_VERSION};
enum {O_ADD, O_SUB, O_MUL, O_COMP, O_VERBOSE, O_HELP, O_VERSION};
@@
-78,6
+79,8
@@
if2_main (int argc, char *const argv[])
int opt_mul = 0;
int opt_comp = 0;
int opt_mul = 0;
int opt_comp = 0;
+ Timer timerProgram;
+
while (1) {
int c = getopt_long (argc, argv, "", my_options, NULL);
while (1) {
int c = getopt_long (argc, argv, "", my_options, NULL);
@@
-200,7
+203,7
@@
if2_main (int argc, char *const argv[])
im_out.labelsCopy (im_in1, "if-2 file 1: ");
im_out.labelsCopy (im_in2, "if-2 file 2: ");
im_out.labelsCopy (im_in1, "if-2 file 1: ");
im_out.labelsCopy (im_in2, "if-2 file 2: ");
- im_out.labelAdd (Array2dFileLabel::L_HISTORY, strOperation.c_str());
+ im_out.labelAdd (Array2dFileLabel::L_HISTORY, strOperation.c_str()
, timerProgram.timerEnd()
);
im_out.fileWrite(out_file);
im_out.fileWrite(out_file);