diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-07-08 20:06:16 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-07-08 20:06:16 (GMT) |
commit | aca0b88941aefecfbef3186e63049cc7fba0a11c (patch) | |
tree | 0ff0fae4a5be0021848d96eb18ee8505ff6b9b5d /src/util.cpp | |
parent | 509496da5e5b38aecbd91a5e20b3d695cbbef775 (diff) | |
download | Doxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.zip Doxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.tar.gz Doxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.tar.bz2 |
Release-1.3.2-20030708
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index b11d2ba..9509c0a 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -25,6 +25,7 @@ #include <qregexp.h> #include <qfileinfo.h> #include <qdir.h> +#include <qdatetime.h> #include "util.h" #include "message.h" @@ -91,6 +92,8 @@ void TextGeneratorOLImpl::writeLink(const char *extRef,const char *file, /*! Implements an interruptable system call on Unix/Windows */ int iSystem(const char *command,const char *args,bool isBatchFile) { + QTime time; + time.start(); #ifndef _WIN32 isBatchFile=isBatchFile; /*! taken from the system() manpage on my Linux box */ @@ -129,6 +132,7 @@ int iSystem(const char *command,const char *args,bool isBatchFile) } } } + Doxygen::sysElapsedTime+=((double)time.elapsed())/1000.0; return status; #else // Other Unices just use fork @@ -157,6 +161,7 @@ int iSystem(const char *command,const char *args,bool isBatchFile) } else { + Doxygen::sysElapsedTime+=((double)time.elapsed())/1000.0; return status; } } @@ -199,9 +204,10 @@ int iSystem(const char *command,const char *args,bool isBatchFile) CloseHandle(sInfo.hProcess); } } + Doxygen::sysElapsedTime+=((double)time.elapsed())/1000.0; return 0; - //return system(command); #endif + } @@ -3635,7 +3641,7 @@ found: PageDef *addRelatedPage(const char *name,const QCString &ptitle, const QCString &doc, - QList<QCString> * /*anchors*/, + QList<SectionInfo> * /*anchors*/, const char *fileName,int startLine, const QList<ListItemInfo> *sli, GroupDef *gd, |