Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71216 - branches/release/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-04-12 16:40:12


Author: viboes
Date: 2011-04-12 16:40:11 EDT (Tue, 12 Apr 2011)
New Revision: 71216
URL: http://svn.boost.org/trac/boost/changeset/71216

Log:
Chrono: inspect update
Text files modified:
   branches/release/libs/chrono/example/runtime_resolution.cpp | 16 ++++++++--------
   branches/release/libs/chrono/example/timeval_demo.cpp | 16 ++++++++--------
   2 files changed, 16 insertions(+), 16 deletions(-)

Modified: branches/release/libs/chrono/example/runtime_resolution.cpp
==============================================================================
--- branches/release/libs/chrono/example/runtime_resolution.cpp (original)
+++ branches/release/libs/chrono/example/runtime_resolution.cpp 2011-04-12 16:40:11 EDT (Tue, 12 Apr 2011)
@@ -53,14 +53,14 @@
   int gettimeofday(struct timeval * tp, void *)
   {
     FILETIME ft;
- #if defined(UNDER_CE)
- // Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
- SYSTEMTIME st;
- ::GetSystemTime( &st );
- ::SystemTimeToFileTime( &st, &ft );
- #else
- ::GetSystemTimeAsFileTime( &ft ); // never fails
- #endif
+ #if defined(UNDER_CE)
+ // Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
+ SYSTEMTIME st;
+ ::GetSystemTime( &st );
+ ::SystemTimeToFileTime( &st, &ft );
+ #else
+ ::GetSystemTimeAsFileTime( &ft ); // never fails
+ #endif
     long long t = (static_cast<long long>(ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
   # if !defined( BOOST_MSVC ) || BOOST_MSVC > 1300 // > VC++ 7.0
     t -= 116444736000000000LL;

Modified: branches/release/libs/chrono/example/timeval_demo.cpp
==============================================================================
--- branches/release/libs/chrono/example/timeval_demo.cpp (original)
+++ branches/release/libs/chrono/example/timeval_demo.cpp 2011-04-12 16:40:11 EDT (Tue, 12 Apr 2011)
@@ -55,14 +55,14 @@
   int gettimeofday(struct timeval * tp, void *)
   {
     FILETIME ft;
- #if defined(UNDER_CE)
- // Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
- SYSTEMTIME st;
- ::GetSystemTime( &st );
- ::SystemTimeToFileTime( &st, &ft );
- #else
- ::GetSystemTimeAsFileTime( &ft ); // never fails
- #endif
+ #if defined(UNDER_CE)
+ // Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
+ SYSTEMTIME st;
+ ::GetSystemTime( &st );
+ ::SystemTimeToFileTime( &st, &ft );
+ #else
+ ::GetSystemTimeAsFileTime( &ft ); // never fails
+ #endif
     long long t = (static_cast<long long>(ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
   # if !defined( BOOST_MSVC ) || BOOST_MSVC > 1300 // > VC++ 7.0
     t -= 116444736000000000LL;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk