Changeset 13356


Ignore:
Timestamp:
06/22/11 08:17:45 (10 years ago)
Author:
Mark Evenson
Message:

Report load time of ".abclrc" forms if we are being chatty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Interpreter.java

    r13227 r13356  
    216216            File file = new File(userHome, ".abclrc");
    217217            if (file.isFile()) {
     218                final double startLoad = System.currentTimeMillis();
    218219                Load.load(file.getCanonicalPath());
     220                if (!noinform) {
     221                    final double loadtime
     222                        = (System.currentTimeMillis() - startLoad) / 1000.0;
     223                    getStandardOutput()
     224                        ._writeString("Loading " + file + " completed in "
     225                                      + loadtime + " seconds.\n");
     226                }
    219227                return;
    220228            }
Note: See TracChangeset for help on using the changeset viewer.