TP-openmp/BE_OpenMP_2019/stacks/aux.h
2023-06-22 20:19:48 +02:00

24 lines
364 B
C

#define MAXELEMS 1000
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct stackstruct{
int cnt;
int *elems;
} stack_t;
void init_stacks(stack_t **stacks, int n);
void free_stacks(stack_t **stacks, int n);
int get_random_stack();
int process();
void check_result(stack_t *stacks, int n);
long usecs ();
void mysleep(double sec);