Originally Posted by
anduril462
C says nothing about threads (well, C11 does -- but generally speaking, C is thread/OS agnostic). Thread and timing capabilities are OS dependent, so it really depends on your system/setup as to how you would do this or whether you even could. For example, C runs on many embedded OSes that don't support threads or timing with any precision. Care to tell us more about your situation? Hardware, OS, C implementation (compiler/libraries), what you intend to do with this info?