repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix NET_2_0 build
[mono-project.git]
/
mono
/
benchmark
/
lock.cs
blob
28e9bf1c41b44e77a51119a63a0988ac01943544
1
using
System
;
2
class
T
{
3
static void
Main
() {
4
int
i
=
Environment
.
TickCount
;
5
new
T
().
X
();
6
Console
.
WriteLine
(
Environment
.
TickCount
-
i
);
7
}
8
9
void
X
() {
10
for
(
int
i
=
0
;
i
<
10000000
;
i
++)
11
lock
(
this
) {}
12
}
13
}