Main Site Documentation

G120: How To Get Machine Time


#1

Hey Guys, I’m wondering how I would be able to get the machine time of a G120 using TinyCLR OS. I am able to do it while running .NETMF by using Microsoft.SPOT.Hardware.Utility.GetMachineTime() but I can’t find the equivalent in TinyCLR OS.


#2

That precise not method does not exist in TinyCLR. Is DateTime.Now.Ticks not adequate for what you’re trying to do?


#3

Thanks John, I think that might work.