Is it possible go get the current windows TickCount in Ruby?
(http://msdn.microsoft.com/en-us/library/ms724408%28v=vs.85%29.aspx)
Is it possible go get the current windows TickCount in Ruby?
(http://msdn.microsoft.com/en-us/library/ms724408%28v=vs.85%29.aspx)
Yes, it's possible with FFI for example. At first, you should install
ffi
gem:And then attach this function:
use windows api:
or
Time.now - t.call() / 1000.0
to get a time when machine was booted