[go: up one dir, main page]

File: s-sleep2.c

package info (click to toggle)
uftrace 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,212 kB
  • sloc: ansic: 53,313; python: 9,846; makefile: 838; asm: 703; cpp: 602; sh: 560; javascript: 191
file content (21 lines) | stat: -rw-r--r-- 173 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
#include <unistd.h>

void bar(void)
{
	usleep(3000);
}

void foo(void)
{
	usleep(5000);
	bar();
}

int main(void)
{
	usleep(1000);

	foo();
	return 0;
}