-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (23 loc) · 752 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (23 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "SimJoiner.h"
#include <time.h>
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char **argv) {
SimJoiner joiner;
// vector<EDJoinResult> resultED;
// vector<JaccardJoinResult> resultJaccard;
//
// unsigned edThreshold = 2;
// double jaccardThreshold = 0.85;
//
// joiner.joinJaccard(argv[1], argv[2], jaccardThreshold, resultJaccard);
// joiner.joinED(argv[1], argv[2], edThreshold, resultED);
freopen("E:\\semester\\dabase-training\\hw2\\test2\\result\\now-result.txt","w",stdout);
clock_t start,end;
start = clock();
joiner.test(string(argv[1]),string(argv[2]));
end = clock();
cout<<"run time:"<<(double)(end-start)/CLOCKS_PER_SEC<<'s'<<endl;
return 0;
}