This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/resource.h> | |
int getTime() { | |
struct rusage r; | |
if(getrusage(RUSAGE_SELF, &r)!=0) {perror("FAIL RUSAGE");} | |