jcchavezs / nanotime
An abstraction for nanotime in PHP.
Installs: 55 619
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^5.6||^7.0
Requires (Dev)
- phpunit/phpunit: ~5.7.19
README
A couple of value objects for representing nanotime.
Usage
$nanotime = Nanotime::now(); usleep(1); $nanotime2 = Nanotime::now(); echo $nanotime2->diff($nanotime);
Further development
This is just a wrapper for the Nanotime concept (which does not exist in PHP) that will perfectly work as an abstraction for nanotime in PHP projects. Further development will tackle the problem about getting an accurate value for nanotime.