This commit is contained in:
WickedJack99
2025-05-06 15:25:30 +02:00
parent 7875707652
commit 511bbc0641

View File

@@ -1,17 +1,31 @@
#include "dbscan_parallel.h"
#include <chrono>
#include <fstream>
#include <iostream>
#include <fstream>
#include <chrono>
#include "dbscan_parallel.h"
using namespace HPC;
int main() {
std::vector<Point> points = readPointsFromFile("data");
// Zeitmessung starten
auto start = std::chrono::high_resolution_clock::now();
DBSCAN ds(5, 0.01);
ds.run(points);
// Zeitmessung beenden
auto end = std::chrono::high_resolution_clock::now();
// Dauer berechnen in Millisekunden
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
std::cout << "Laufzeit: " << duration << " ms" << std::endl;
writePointsToFile(ds.getPoints(), "clustered");
return 0;