File indexing completed on 2025-01-18 09:37:21
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_GRAPH_ACCOUNTING_HPP
0010 #define BOOST_GRAPH_ACCOUNTING_HPP
0011
0012 #include <iomanip>
0013 #include <iostream>
0014 #include <string>
0015 #include <sstream>
0016 #include <boost/mpi/config.hpp>
0017
0018 namespace boost { namespace graph { namespace accounting {
0019
0020 typedef double time_type;
0021
0022 inline time_type get_time()
0023 {
0024 return MPI_Wtime();
0025 }
0026
0027 inline std::string print_time(time_type t)
0028 {
0029 std::ostringstream out;
0030 out << std::setiosflags(std::ios::fixed) << std::setprecision(2) << t;
0031 return out.str();
0032 }
0033
0034 } } }
0035
0036 #endif