TP-openmp/BE_OpenMP_2019/stacks/aux.h

24 lines
364 B
C
Raw Normal View History

2023-06-22 18:19:48 +00:00
#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);