Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

#include int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux }

#include <sys/time.h>

int main()
{
   timespec ts;
   // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD
   clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #timespec #Works #FreeBSD #Works #Linux
ADD COMMENT
Topic
Name
9+8 =