- Optimized function that transform a number of seconds to a duration(days, hours, minutes, secs)

- Improved ETA calculation to avoid overflows (Added asserts to make sure it doesn't happen)
This commit is contained in:
Christophe Dumez
2007-08-28 18:44:54 +00:00
parent 105563ac5a
commit 21908e0a03
5 changed files with 42 additions and 30 deletions

View File

@@ -19,15 +19,15 @@ DEFINES += VERSION_BUGFIX=0
contains(DEBUG_MODE, 1){
CONFIG += debug
CONFIG -= release
QMAKE_CXXFLAGS_RELEASE += -O1
QMAKE_CXXFLAGS_DEBUG += -O1
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O1
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O1
message(Debug build!)
}
contains(DEBUG_MODE, 0){
CONFIG -= debug
CONFIG += release
QMAKE_CXXFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_DEBUG += -O2
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O2
message(Release build!)
}