1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibJS: Add thousands separators to nanoseconds multiplier value

Increases readability. Thanks to @nico for noticing this!
This commit is contained in:
Linus Groh 2021-07-07 19:59:53 +01:00
parent 6319796f58
commit b180e154aa

View file

@ -62,7 +62,7 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
clock_gettime(CLOCK_REALTIME, &now);
Checked<i64> ns_timestamp;
ns_timestamp += now.tv_sec;
ns_timestamp *= 1000000000;
ns_timestamp *= 1'000'000'000;
ns_timestamp += now.tv_nsec;
if (ns_timestamp.has_overflow()) {
// TODO: Deal with this before 2262-04-21T00:47:16Z.