Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74437 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-09-17 07:31:28


Author: viboes
Date: 2011-09-17 07:31:27 EDT (Sat, 17 Sep 2011)
New Revision: 74437
URL: http://svn.boost.org/trac/boost/changeset/74437

Log:
Chrono: Inspect cleanup
Text files modified:
   trunk/libs/chrono/example/runtime_resolution.cpp | 16 ++++++++--------
   trunk/libs/chrono/example/timeval_demo.cpp | 16 ++++++++--------
   2 files changed, 16 insertions(+), 16 deletions(-)

Modified: trunk/libs/chrono/example/runtime_resolution.cpp
==============================================================================
--- trunk/libs/chrono/example/runtime_resolution.cpp (original)
+++ trunk/libs/chrono/example/runtime_resolution.cpp 2011-09-17 07:31:27 EDT (Sat, 17 Sep 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: trunk/libs/chrono/example/timeval_demo.cpp
==============================================================================
--- trunk/libs/chrono/example/timeval_demo.cpp (original)
+++ trunk/libs/chrono/example/timeval_demo.cpp 2011-09-17 07:31:27 EDT (Sat, 17 Sep 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