projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-11-28 Martin Baulig <martin@ximian.com>
[mono.git]
/
mono
/
benchmark
/
lock.cs
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
}