mirror of
https://github.com/boostorg/chrono.git
synced 2026-01-25 18:12:13 +00:00
Test output: Sandia-pgi-10.1 - chrono - arithmetic_pass_shared / pgi-10.1 Rev 67766 / Sat, 8 Jan 2011 07:38:17 +0000 Report Time: Sat, 8 Jan 2011 12:49:04 +0000 Output by test variants: boost/bin.v2/libs/chrono/test/arithmetic_pass_shared.test/pgi-10.1/debug/threading-multi boost/bin.v2/libs/chrono/test/arithmetic_pass_shared.test/pgi-10.1/debug/threading-multi/duration [SVN r67783]
34 lines
927 B
C++
34 lines
927 B
C++
// french.cpp ----------------------------------------------------------//
|
|
|
|
// Copyright 2010 Howard Hinnant
|
|
// Copyright 2011 Vicente J. Botet Escriba
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// See http://www.boost.org/LICENSE_1_0.txt
|
|
|
|
// Adapted to Boost from the original Hawards's code
|
|
|
|
#include <boost/chrono/chrono_io.hpp>
|
|
#include <boost/chrono/process_cpu_clocks.hpp>
|
|
#include <boost/chrono/thread_clock.hpp>
|
|
#include <iostream>
|
|
#include <locale>
|
|
|
|
int main()
|
|
{
|
|
using namespace std;
|
|
using namespace boost;
|
|
using namespace boost::chrono;
|
|
|
|
cout.imbue(locale(locale(), new duration_punct<char>
|
|
(
|
|
duration_punct<char>::use_long,
|
|
"secondes", "minutes", "heures",
|
|
"s", "m", "h"
|
|
)));
|
|
hours h(5);
|
|
minutes m(45);
|
|
seconds s(15);
|
|
milliseconds ms(763);
|
|
cout << h << ", " << m << ", " << s << " et " << ms << '\n';
|
|
}
|