/timespec_math

Basic operations for the struct timespec type

Primary LanguageC

timespec_math

Basic operations for the struct timespec type.

Feel free to copypaste and modify them into your C code.

Provided operations:

  • Difference between timespecs
  • Sum between timespecs
  • Multiplication between timespec and int
  • Division between timespec and int