Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.062 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'occasionally': 0.09; 'subject:skip:t 10': 0.09; 'cc:addr:python-list': 0.11; 'thread': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invisible': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'no,': 0.35; 'received:google.com': 0.35; 'done': 0.36; 'process,': 0.38; 'stopped': 0.38; 'anything': 0.39; 'sure': 0.39; 'even': 0.60; 'signal': 0.60; 'guarantee': 0.63; 'side': 0.67; 'subject:over': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=xamk+RPKz2wYRNf34/IoRc+NMbssDTBEtFemjX7tiLM=; b=LM69TG78VZTjrKV5VRa3F4hU+9867hBCyNAHvcl6l5EHDTFJXTQl1SjLssBNCI01Zx 828jj7u+wfEXOL41E2obQyp8338fpWV/8F2vcD4QAcdrxM1n1aK1F+x++yv8DbRk1gL+ 5HQ/6L9xyFza0E33X41onfAEzSUhGXauPZCxSr0VTfJZnFc0zLo5vUKmIX66/7yg2HXP bjo8i0y0mWmaoVGrAX9awCxAK5QpVtlu7Gjy+j/Evs19P4I5+0/GpnXoYQBzzsHNO0CF xWN7qhp9QOatxT0O85194xtDz/PCfyAiXASpU0u0B+HUGzhtQLBzoEiZB0ssbLMdTTnI Ue+Q== MIME-Version: 1.0 X-Received: by 10.50.62.104 with SMTP id x8mr57437196igr.2.1417717749600; Thu, 04 Dec 2014 10:29:09 -0800 (PST) In-Reply-To: <87ppbzp9qq.fsf@elektro.pacujo.net> References: <54807cfd$0$2311$426a74cc@news.free.fr> <87vblr8lcw.fsf@elektro.pacujo.net> <87r3wf8jy8.fsf@elektro.pacujo.net> <87ppbzp9qq.fsf@elektro.pacujo.net> Date: Fri, 5 Dec 2014 05:29:09 +1100 Subject: Re: time.monotonic() roll over From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417717757 news.xs4all.nl 2891 [2001:888:2000:d::a6]:33163 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81931 On Fri, Dec 5, 2014 at 5:09 AM, Marko Rauhamaa wrote: > Sure it could by having an invisible background thread occasionally call > time.monotonic(). It could even be done on the side without a thread. No, it can't be solved by anything in that process, because... > * the program could be stopped by a STOP signal ... what you said There's no way to guarantee to keep calling the function. You have to depend on upstream. ChrisA