[Development] <chrono> first (was: Re: C++20 @ Qt)
Simon Platten
simonaplatten at gmail.com
Wed Jan 25 13:43:06 CET 2023
Qt is a multi-platform library available for various platforms and languages.
Kind Regards,
Simon Platten simonp at syberdynesystems.co <mailto:simonp at syberdynesystems.com>.uk
Syberdyne Systems Ltd,
Latona House, Station Road, Cantley, Norwich, Norfolk, NR13 3SQ
VAT no. 426 9208 85, Tel: +44 (0)777 0777 820
Skype: simonaplatten <skype:simonaplatten>
LinkedIn: https://www.linkedin.com/in/simonplatten/ <https://www.linkedin.com/in/simonplatten/>
Microsoft Teams: https://urlshortener.teams.microsoft.com/8D88C4D2555C2B4-7-1 <https://urlshortener.teams.microsoft.com/8D88C4D2555C2B4-7-1>
> On 25 Jan 2023, at 12:33, Alvin Wong via Development <development at qt-project.org> wrote:
>
>
> On 25/1/2023 0:03, Thiago Macieira wrote:
>> On Tuesday, 24 January 2023 00:44:37 PST Marc Mutz via Development wrote:
>>> On 23.01.23 23:57, Thiago Macieira wrote:
>>>> static_assert(sizeof(std::chrono::milliseconds::rep) == 8);
>>> Why == and not >=?
>> I think we'd want to know if that happened, because a lot of our code will be
>> depending on the ± 292 million years limit around the epoch.
>>
> Not familiar with what Qt already does with std::chrono, but on a first glance it seems like `std::chrono::duration<qint64, std::milli>` will be better for the purpose, no?
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230125/0899df53/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.tiff
Type: image/tiff
Size: 21672 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230125/0899df53/attachment-0002.tiff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.tiff
Type: image/tiff
Size: 38968 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230125/0899df53/attachment-0003.tiff>
More information about the Development
mailing list