Skip to content
Snippets Groups Projects
Commit c7c7fb76 authored by Tom Fischer's avatar Tom Fischer
Browse files

run time measurement for windows in MeshRead programme

parent d63a82e6
No related branches found
No related tags found
No related merge requests found
...@@ -43,18 +43,19 @@ int main(int argc, char *argv[]) ...@@ -43,18 +43,19 @@ int main(int argc, char *argv[])
#ifndef WIN32 #ifndef WIN32
BaseLib::MemWatch mem_watch; BaseLib::MemWatch mem_watch;
unsigned long mem_without_mesh (mem_watch.getVirtMemUsage()); unsigned long mem_without_mesh (mem_watch.getVirtMemUsage());
#endif
BaseLib::RunTime run_time; BaseLib::RunTime run_time;
run_time.start(); run_time.start();
#endif
MeshLib::Mesh* mesh = mesh_io.loadMeshFromFile(fname); MeshLib::Mesh* mesh = mesh_io.loadMeshFromFile(fname);
#ifndef WIN32 #ifndef WIN32
unsigned long mem_with_mesh (mem_watch.getVirtMemUsage()); unsigned long mem_with_mesh (mem_watch.getVirtMemUsage());
// std::cout << "mem for mesh: " << (mem_with_mesh - mem_without_mesh)/(1024*1024) << " MB" << std::endl; // std::cout << "mem for mesh: " << (mem_with_mesh - mem_without_mesh)/(1024*1024) << " MB" << std::endl;
INFO ("mem for mesh: %i MB", (mem_with_mesh - mem_without_mesh)/(1024*1024)); INFO ("mem for mesh: %i MB", (mem_with_mesh - mem_without_mesh)/(1024*1024));
#endif
run_time.stop(); run_time.stop();
// std::cout << "time for reading: " << run_time.elapsed() << " s" << std::endl; // std::cout << "time for reading: " << run_time.elapsed() << " s" << std::endl;
INFO ("time for reading: %f s", run_time.elapsed()); INFO ("time for reading: %f s", run_time.elapsed());
#endif
/* /*
unsigned elem_id = 1; unsigned elem_id = 1;
const MeshLib::Element* e = mesh->getElement(elem_id); const MeshLib::Element* e = mesh->getElement(elem_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment