![]() |
The following steps describe how to retrieve the current network time using the Time Synchronization service.
1. Retrieve the instance of AMT_TimeSynchronizationService, where “the “Name” key equals “Intel(r) AMT Time Synchronization Service”.
2. Invoke AMT_TimeSynchronizationService.GetLowTimeSynch, which returns a uint32 value, Ta0, which is the current Intel AMT network time in UNIX time format.
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
function GetTimeSync
{
$timeSynchronizationServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_TimeSynchronizationService WHERE Name='Intel(r) AMT Time Synchronization Service'")
$inputObject =$timeSynchronizationServiceRef.CreateMethodInput("GetLowAccuracyTimeSynch")
$outputObject =$timeSynchronizationServiceRef.InvokeMethod($inputObject)
$returnValue =$outputObject.GetProperty("ReturnValue")
if($returnValue -like "0")
{
$ta0 =$outputObject.GetProperty("Ta0")
return$ta0
}
}
Instance Diagram
Classes Used in This Flow
SDK Sample
Not applicable
Copyright © 2006-2022, Intel Corporation. All rights reserved. |