techcompliant / TC-Specs

Specifications for in-game computer design
28 stars 14 forks source link

Add a real wall-clock time device #21

Closed bshepherdson closed 8 years ago

bshepherdson commented 8 years ago

Comments welcome!

Is millisecond precision practical for the server's point of view?

azertyfun commented 8 years ago
bshepherdson commented 8 years ago

On another point, one of the reasons for this hardware is not the time or date exactly, but using the time and date (especially its high-resolution parts!) as entropy for a software PRNG. The lower the resolution of this clock, the harder that becomes.

bshepherdson commented 8 years ago

I've updated this. Now it's a backwards-compatible extension to the generic clock device, which now combines relative timer and absolute time/date functions.

I've also clarified that the time zone is not specified. Interpreting the hardware time is a software concern, just as it is on present-day hardware. It's recommended, but not required, that emulators use the host machine's local time.

paultech commented 8 years ago

This looks good to me. Waiting on @andyleap to weight on then we will merge and get it into the emulator/client.

Yamakaky commented 8 years ago

wrong indent, check the rendered version