Skip to content

Commit

Permalink
Add Environment.TickCount64 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jan 24, 2022
1 parent 0058589 commit 4640550
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nanoFramework.Runtime.Native/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
[assembly: AssemblyNativeVersion("100.0.8.0")]
[assembly: AssemblyNativeVersion("100.0.9.0")]
////////////////////////////////////////////////////////////////

// Setting ComVisible to false makes the types in this assembly not visible
Expand Down
25 changes: 25 additions & 0 deletions nanoFramework.Runtime.Native/System/Environment.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//

using System.Runtime.CompilerServices;

namespace System
{
/// <summary>
/// Provides information about, and means to manipulate, the current environment and platform. This class cannot be inherited.
/// </summary>
public static partial class Environment
{
/// <summary>
/// Gets the number of milliseconds elapsed since the system started.
/// </summary>
/// <value>The elapsed milliseconds since the system started.</value>
public static extern long TickCount64
{
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<Compile Include="ExecutionConstraint.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Rtc.cs" />
<Compile Include="System\Environment.cs" />
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.5.3-preview.{height}",
"version": "1.5.4-preview.{height}",
"assemblyVersion": {
"precision": "revision"
},
Expand Down

0 comments on commit 4640550

Please sign in to comment.