From 2b2ed8cf06afe50fb0a604d902488961d37df9d4 Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Sun, 29 Nov 2020 18:10:31 +0100 Subject: [PATCH] removed Timing class for only one measure output --- Makefile | 8 +++----- performance.cpp | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f419673..f4c1924 100644 --- a/Makefile +++ b/Makefile @@ -8,19 +8,17 @@ SFMLFLAGS = -lsfml-system -lsfml-window -lsfml-graphics # If SFML is not installed in a standard path, you need to tell the dynamic linker where to find the SFML libraries first by specifying LD_LIBRARY_PATH: # export LD_LIBRARY_PATH=/lib && ./sfml-app -quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o +quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Display.o # link with sfml libs; -lsfml-network -lsfml-audio currently not needed - $(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o $(SFMLFLAGS) + $(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Display.o $(SFMLFLAGS) performance: performance.cpp Display.o $(CXX) $(CXXFLAGS) -o performance Display.o performance.cpp $(SFMLFLAGS) -main.o: main.cpp Timing.h +main.o: main.cpp $(CXX) $(CXXFLAGS) -c main.cpp Display.o: Display.h -Timing.o: Timing.h - clean : -rm *.o quickhull performance diff --git a/performance.cpp b/performance.cpp index f4815ec..a468649 100644 --- a/performance.cpp +++ b/performance.cpp @@ -1,3 +1,6 @@ +#include +#include + #include "Quickhull.h" #include "NumberGenerator.h" #include "Display.h"