From 9fda5b875e51daafe857ed275ec5354c8cd4fe9a Mon Sep 17 00:00:00 2001 From: torin <torin@git.sch.bme.hu> Date: Wed, 27 May 2015 13:11:10 +0200 Subject: [PATCH] ctime removed --- main.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/main.cpp b/main.cpp index b1d3007..2e90fae 100644 --- a/main.cpp +++ b/main.cpp @@ -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); { -- GitLab