Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:37:21

0001 // Copyright 2005 The Trustees of Indiana University.
0002 
0003 // Use, modification and distribution is subject to the Boost Software
0004 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 //  Authors: Douglas Gregor
0008 //           Andrew Lumsdaine
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 } } } // end namespace boost::graph::accounting
0035 
0036 #endif // BOOST_GRAPH_ACCOUNTING_HPP