[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] deprecate Date.bootSeconds?
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] deprecate Date.bootSeconds?
- From: Tim Blechmann <tim@xxxxxxxxxx>
- Date: Sat, 29 Dec 2012 19:59:39 +0100
- In-reply-to: <CALfiFhCRbD9LVfS=97q6y-ZbGRKdGPAd0OkGobs1c-Gkyt=mHA@mail.gmail.com>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <50DF3927.70605@klingt.org> <CALfiFhCRbD9LVfS=97q6y-ZbGRKdGPAd0OkGobs1c-Gkyt=mHA@mail.gmail.com>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
> What's the difference between this and Main.elapsedTime?
on osx: Main.elapsedTime gives the time since the start of the language,
both are monotonic
on other platforms: no difference, none is monotonic
internally, osx synchronizes the monotonic clock to the system clock,
other platforms only use the system clock ...
tim
>> hi all,
>>
>> i wonder, what's the opinion of people to deprecate bootSeconds from the
>> Date class?
>>
>> * it gives an arbitrary value which is not platform-independent
>> (probably time since startup on osx and time since epoch everywhere else)
>> * its value is only monotonic under osx
>> * it is not documented
>>
>> in short: every code that depends on it is fragile and one should
>> probably use rawSeconds instead ...
>>
>> thoughts?
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/