2012-08-09 09:45:04 +00:00
|
|
|
|
using System;
|
|
|
|
|
using ANX.Framework.NonXNA.PlatformSystem;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
2012-08-11 13:06:29 +00:00
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
|
namespace ANX.PlatformSystem.Linux
|
|
|
|
|
{
|
|
|
|
|
public class LinuxGameTimer : INativeGameTimer
|
|
|
|
|
{
|
|
|
|
|
#region Public
|
|
|
|
|
public long Frequency
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Stopwatch.Frequency;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long Timestamp
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Stopwatch.GetTimestamp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|