Sha256: 06c2cc1919b7b7fad239e1128ba1887e28e87df1f2eff641d8d8594d7fd2b283

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 Bytes

Contents

#define _POSIX_C_SOURCE 199309L

#include <sys/time.h>
#include <time.h>

long int get_monotonic_m_secs() {
  struct timespec at;
  clock_gettime(CLOCK_MONOTONIC_RAW, &at);

  return at.tv_sec * 1000000 + at.tv_nsec / 1000;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stack_trace-0.8.0 ext/stack_trace/utils.c
stack_trace-0.7.0 ext/stack_trace/utils.c