Example #1
0
void Module_DCREATE::compute_hash(int k, int blockLength, const char * input_file, const char * output_file, bool methyl_hash) const {
	clock_t start = clock();
	Hash * H = new Hash(k, blockLength, methyl_hash);
	vector<string> temp;
	temp.push_back(string(input_file));
	H->createHASH(temp);
	clock_t end = clock();
	DEFAULT_CHANNEL << "building time = " <<((end - start) / (double)CLOCKS_PER_SEC) << endl;
	H->save(output_file);
	clock_t end2 = clock();
	DEFAULT_CHANNEL << "saving time = " <<((end2 - end) / (double)CLOCKS_PER_SEC) << endl;
	DEFAULT_CHANNEL << "total time = " <<((end2 - start) / (double)CLOCKS_PER_SEC) << endl;
}