forgot about the non-zero base of the conventional memory selector in CWSDPMI...
[retrobench] / src / dos / main.c
index f048366..aeb18ba 100644 (file)
@@ -17,16 +17,16 @@ int main(int argc, char **argv)
        int num_frames = 0;
        void *vmem;
 
+#ifdef __DJGPP__
+       __djgpp_nearptr_enable();
+#endif
+
        read_config("rbench.cfg");
 
        if(parse_args(argc, argv) == -1) {
                return 1;
        }
 
-#ifdef __DJGPP__
-       __djgpp_nearptr_enable();
-#endif
-
        init_logger("rbench.log");
 
        if(init_video() == -1) {
@@ -67,8 +67,10 @@ int main(int argc, char **argv)
 end:
        set_text_mode();
        cleanup_video();
+       stop_logger();
 
        if(num_frames) {
+               printf("%d frames in %d msec\n", num_frames, time_msec);
                printf("avg framerate: %.1f fps\n", (10000 * num_frames / time_msec) / 10.0f);
        }
        return 0;