Skip to content

An abstraction for nanotime in PHP.

License

Notifications You must be signed in to change notification settings

OrderMyGear/nanotime-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nanotime PHP

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.

About

An abstraction for nanotime in PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.3%
  • Makefile 0.7%