summaryrefslogtreecommitdiff
path: root/csharp/src/Ice/Time.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
committerJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
commit20ead35bcd15c258b00da6b1a16d26107f8dea8b (patch)
tree0aa99a82b9d56383c76c372fc1050dfd5493b4e9 /csharp/src/Ice/Time.cs
parentFixed make install issue (diff)
downloadice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.bz2
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.xz
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.zip
CSharp mapping cleanup
- Remove code support for old ussuported frameworks (SILVERLIGHT, COMPACT, MONO) - Remove code support for deprecated collection mappings clr:collection
Diffstat (limited to 'csharp/src/Ice/Time.cs')
-rw-r--r--csharp/src/Ice/Time.cs75
1 files changed, 0 insertions, 75 deletions
diff --git a/csharp/src/Ice/Time.cs b/csharp/src/Ice/Time.cs
index 4b5f57e29d4..7223291991d 100644
--- a/csharp/src/Ice/Time.cs
+++ b/csharp/src/Ice/Time.cs
@@ -9,7 +9,6 @@
namespace IceInternal
{
-#if !SILVERLIGHT
using System.Diagnostics;
public sealed class Time
@@ -26,78 +25,4 @@ namespace IceInternal
private static Stopwatch _stopwatch = new Stopwatch();
}
-
-#else
-
- public class Stopwatch
- {
- public void Start()
- {
- if(!_running)
- {
- _startTick = System.DateTime.Now.Ticks;
- _running = true;
- }
- }
-
- public void Stop()
- {
- if(_running)
- {
- _elapsedTicks += System.DateTime.Now.Ticks - _startTick;
- _running = false;
- }
-
- }
-
- public void Reset()
- {
- _startTick = 0;
- _elapsedTicks = 0;
- _running = false;
- }
-
- public long ElapsedTicks
- {
- get
- {
- if(!_running)
- {
- return _elapsedTicks;
- }
- else
- {
- return _elapsedTicks + (System.DateTime.Now.Ticks - _startTick);
- }
- }
- }
-
- public long Frequency
- {
- get
- {
- return System.TimeSpan.TicksPerMillisecond * 1000;
- }
- }
-
- private long _startTick = 0;
- private long _elapsedTicks = 0;
- private bool _running = false;
- }
-
- public sealed class Time
- {
- static Time()
- {
- _begin = System.DateTime.Now.Ticks;
- }
-
- public static long currentMonotonicTimeMillis()
- {
- return (System.DateTime.Now.Ticks - _begin) / 10000;
- }
-
- private static long _begin;
- }
-#endif
}