Skip to content

Instantly share code, notes, and snippets.

View jmmlmendes's full-sized avatar

José Mendes jmmlmendes

  • Cray Inc.
  • Seattle
View GitHub Profile
#include <time.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#define YIELD
@jmmlmendes
jmmlmendes / yield_time_nanos.c
Last active April 10, 2016 18:42
measure rumprun sched_yield() time in infinite loop
#include <err.h>
#include <stdio.h>
#include <limits.h>
#include <sys/time.h>
#include <sched.h>
#define ITERATIONS 10000000
/*