Re: [Boost-bugs] [Boost C++ Libraries] #3179: Sleep with local_time

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3179: Sleep with local_time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-15 18:39:45

#3179: Sleep with local_time
  Reporter: anonymous | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.40.0 | Component: thread
   Version: Boost 1.39.0 | Severity: Problem
Resolution: | Keywords: sleep time

Comment(by anonymous):

 Replying to [ticket:3179 anonymous]:
> When calling sleep with an absolute time, it sleeps about two hours
 instead of one second in code similar to the below example.
> ptime now = second_clock::local_time();
> this_thread::sleep( now + second(1) )

 After a lot of headache I think that might is due to a missmatch with utc
 and local time.
 Please make it possible to sleep until a "local time" (local time zone)
 and write something about it in the documentations, I haven't found
 anything special about which type of time should be used.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC