aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/slow_globals/slow_globals.c
blob: 636f586109f761c261b559aeaf15c1f50f2b4d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../clock.h"

extern void nothing(void);
int variable;

int main() {
  clock_prepare();
  clock_start();
  for(int i=0; i<1000; i++) {
    variable++;
    nothing();
  }
  clock_stop();
  print_total_clock();
}