Alexander Ryzhov
May 2, 2025

Time Formatting

Time can be represented in different measures. Most often i need seconds, but since i’ve got into [[gamedev]], the time is good to have in milliseconds, to work within the engine.

The best solution for time variable naming - to use a suffix:

  • sec - seconds
  • ms - milliseconds
  • ns - nanoseconds

This is the most sensible approach - no documentation is going to replace it - better to point out this directly to avoid confusion.