[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Mirage clock



On 3 August 2015 at 17:16, Nick Betteridge <buzzheavyyear@xxxxxxxxxxx> wrote:
> Hi
>
> I have a use case where I need the clock resolution to be in milliseconds.
> Is there anyway I can get hold of the time in milli (/micro/nano) seconds
> from the system clock without incurring too much of a performance penalty?

I think Clock.time is probably as fast as it's going to get for the
system clock, since it just calls the platform's gettimeofday
function.

If you only want to measure an interval and you're on Xen,
OS.Time.Monotonic.time() might be slightly quicker, but I doubt
there's much in it.


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.