Hi,

> -----Original Message-----
> From: Niklas Keller [mailto:m...@kelunik.com]
> Sent: Thursday, January 5, 2017 2:27 AM
> To: Michael Wallner <m...@php.net>; Anatol Belski <anatol....@belski.net>
> Cc: PHP Internals <internals@lists.php.net>
> Subject: Re: [PHP-DEV] Fwd: Monotonic Time
> 
> >
> > Actually, it seems, that hrtime doesn't let you access the current
> > value, which is, well, quite a major use case, isn't it?
> 
> 
> Yes, that seemed weird to me, too. Did we miss anything, Anatol?
> 
Yeah, I thought I did that already, but well ...  The ext was more about 
performance testing, at the start at least. I made some refactoring to it 
yesterday, so it is now possible to implement an arbitrary userspace timer 
using the HRTime\PerformanceCounter class. Maybe should add also HRTime\Timer, 
but it should first get a thought about some good API approach.

The portable parts are bundled files timer.[h|c] in the hrtime repo, supporting 
POSIX, Windows and Mac. They can be reused, or taken as an example, for sure.

Regards

Anatol




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to