Skip to content

Instantly share code, notes, and snippets.

#
# Converts an array with nested elements
# into a flattened array with the nested
# elements inline.
#
# == Parameters:
# arr::
# This parameter can be an array or
# an single object, or nil. If it
# is a single object or nil, it will
@phantomfive
phantomfive / test.c
Created March 23, 2016 21:22
Timing loop direction and speed
#include <stdio.h>
#include <sys/resource.h>
int getTime() {
struct rusage r;
if(getrusage(RUSAGE_SELF, &r)!=0) {perror("FAIL RUSAGE");}