Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/graph/accounting.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Copyright 2005 The Trustees of Indiana University. |
Chris@16 | 2 |
Chris@16 | 3 // Use, modification and distribution is subject to the Boost Software |
Chris@16 | 4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 5 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 6 |
Chris@16 | 7 // Authors: Douglas Gregor |
Chris@16 | 8 // Andrew Lumsdaine |
Chris@16 | 9 #ifndef BOOST_GRAPH_ACCOUNTING_HPP |
Chris@16 | 10 #define BOOST_GRAPH_ACCOUNTING_HPP |
Chris@16 | 11 |
Chris@16 | 12 #include <iomanip> |
Chris@16 | 13 #include <iostream> |
Chris@16 | 14 #include <string> |
Chris@16 | 15 #include <sstream> |
Chris@16 | 16 #include <boost/mpi/config.hpp> |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { namespace graph { namespace accounting { |
Chris@16 | 19 |
Chris@16 | 20 typedef double time_type; |
Chris@16 | 21 |
Chris@16 | 22 inline time_type get_time() |
Chris@16 | 23 { |
Chris@16 | 24 return MPI_Wtime(); |
Chris@16 | 25 } |
Chris@16 | 26 |
Chris@16 | 27 inline std::string print_time(time_type t) |
Chris@16 | 28 { |
Chris@16 | 29 std::ostringstream out; |
Chris@16 | 30 out << std::setiosflags(std::ios::fixed) << std::setprecision(2) << t; |
Chris@16 | 31 return out.str(); |
Chris@16 | 32 } |
Chris@16 | 33 |
Chris@16 | 34 } } } // end namespace boost::graph::accounting |
Chris@16 | 35 |
Chris@16 | 36 #endif // BOOST_GRAPH_ACCOUNTING_HPP |