• ExLisper@linux.community
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 months ago

    OMG, it’s so trivial. What you do is when T2 happens you send an atomic clock back in time to T1 and start counting till T2 happens again. If T1 and T2 happen in different locations you send two entangled clocks and collapse the state on T2 clock when the event happens measuring the exact moment on T1. How is this an issue?

    • CanadaPlus@futurology.today
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 months ago
      1. Ok, but the time on the server clock and time on the client clock would never be different by a matter of decades.
      2. The system clock will never be set to a time that is in the distant past or the far future.

      Does this come up? I feel like if you’re doing retrocomputing you assume a certain level of responsibility for your software breaking.

      1. Ok, but the duration of one minute on the system clock will be pretty close to the duration of one minute on most other clocks.
      2. Fine, but the duration of one minute on the system clock would never be more than an hour.
      3. You can’t be serious.

      You can’t be, can you? Ditto on that being the user’s problem. My thing also isn’t portable onto Zeus Z-2 or a billiard ball computer you built in your garage.

      There’s some weird shit in the crowdsourced ones. I don’t even know where to start.

      • Redjard@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        7 months ago

        You heard of standby and the likes? What do you recon that does to programs calculating with time in that exact moment?

        • CanadaPlus@futurology.today
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 months ago

          I… Actually don’t know.

          The real time clock continues to move in real time under reasonable conditions. If it’s in a weird year it’s either because you’ve decided to run a disk you found in a cave, left by the Ancient Ones, or you’re cheating at Animal Crossing.

          I’m a little unclear on how the rest of the clocks typically work together. If your program is drawing from one that gets stopped for a while, I guess yeah, a minute could totally be weeks long, and I’m in the picture as a falsehood believer.

    • AVincentInSpace@pawb.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      if that person who wrote all these could provide examples for why literally any of them are wrong instead of just resorting to the standard “falsehoods programmers believe” fare of “you believe this? ha. it is wrong. therefore I am smarter than you” I would very much appreciate it

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    The past is the past. Everything that happened before time t_now should be set to Inf. I thank you for your ears.

  • sebsch@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    I mean, as long you only need the delta in milliseconds it’s easy. Just count the milliseconds from 1970 to the event. The problem starts when you want to have a human readable representation.

    It’s calenders they suck, not time.

    • mormegil@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      7 months ago

      Well… unless you measure the number of [milli]seconds using something like time_t, which lies because of leap seconds. I.e. even such a seemingly simple interface, in fact, includes a calendar.

    • CanadaPlus@futurology.today
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 months ago

      Actually, while mathematically heavy, it’s easy to measure in GR, assuming you’ve got a metric solved (If you don’t, you’re fucked. That shit is intractable to the point where you can name every exact solution on one page, and inexact solutions can just be lies) However, you may have to ask additional questions about what sort of time you want, which probably stems from why you need it.