[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] deprecate Date.bootSeconds?



> 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/