Skip to content
Snippets Groups Projects
Commit 9fda5b87 authored by torin's avatar torin
Browse files

ctime removed

parent e325f8d2
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
#include <iterator>
#include <memory>
#include <vector>
#include <ctime>
//#include <ctime>
/*
namespace recursive_storage{
template<class T>
......@@ -372,9 +372,9 @@ int graph<T>::node::_id=0;
void test1(int num)
{
time_t start,end;
//time_t start,end;
std::cout<<"test1 : create "<<num<<" 1 node graph"<<std::endl;
start=time(0);
//start=time(0);
{
for(size_t i=0;i<num;i++)
{
......@@ -382,9 +382,9 @@ void test1(int num)
//graph.add_node(6);
}
}
end=time(0);
std::cout<<"local_storage: "
<<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
//end=time(0);
std::cout<<"local_storage: ";
/*<<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
localtime(&start)->tm_min*60-localtime(&start)->tm_sec<<"s"<<std::endl;
/*start=time(0);
{
......@@ -401,9 +401,9 @@ void test1(int num)
void test2(int num)
{
time_t start,end;
//time_t start,end;
std::cout<<"test2 : create "<<num<<" 5 node full connected graph"<<std::endl;
start=time(0);
//start=time(0);
{
for(size_t i=0;i<num;i++)
{
......@@ -415,9 +415,9 @@ void test2(int num)
graph.connect(graph[j],graph[l]);*/
}
}
end=time(0);
std::cout<<"local_storage: "
<<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
//end=time(0);
std::cout<<"local_storage: ";
/* <<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
localtime(&start)->tm_min*60-localtime(&start)->tm_sec<<"s"<<std::endl;
/*start=time(0);
{
......@@ -439,9 +439,9 @@ void test2(int num)
void test3(int num)
{
time_t start,end;
//time_t start,end;
std::cout<<"test3 : create "<<num<<" 30 node line graph, search for the deepest and delete it."<<std::endl;
start=time(0);
//start=time(0);
{
for(size_t i=0;i<num;i++)
{
......@@ -456,9 +456,9 @@ void test3(int num)
graph.erase(*target);*/
}
}
end=time(0);
std::cout<<"local_storage: "
<<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
//end=time(0);
std::cout<<"local_storage: ";
/* <<localtime(&end)->tm_min*60+localtime(&end)->tm_sec-
localtime(&start)->tm_min*60-localtime(&start)->tm_sec<<"s"<<std::endl;
/*start=time(0);
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment