aboutsummaryrefslogtreecommitdiffstats
path: root/sleep.c
blob: e9a2decd4c6b8a278cc449912b8c88d30ed2d947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
#include<stdlib.h>

int main(void) {
    printf("This is before the sleep.\n");
    sleep(10);
    printf("This is after the sleep and before the for loop.\n");
    long i;
    for(i = 0; i < 999999999999999; i++)
        ;
    printf("This is after the for loop.\n");
}