File: test.c

package info (click to toggle)
microprofile 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,960 kB
  • sloc: cpp: 17,692; asm: 372; ansic: 265; makefile: 257; sh: 36
file content (18 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "microprofile.h"
#ifndef _WIN32
#include <unistd.h>
#endif

void C_Test()
{
	MICROPROFILE_ENTERI("C", "C_TEST", 0xff00ff);
	for(uint32_t i = 0; i < 20; ++i)
	{
		MICROPROFILE_ENTERI("C", "C_TEST_INNER", 0xff00ff);
#ifndef _WIN32
		//usleep(10);
#endif
		MICROPROFILE_LEAVE();
	}
	MICROPROFILE_LEAVE();
}