Skip to content

PHP bindings for libnanotime for nanosecond precision timestamps

License

Notifications You must be signed in to change notification settings

sergeyklay/php-nanotime

 
 

Repository files navigation

The nanotime

Build Status

PHP bindings for libnanotime for nanosecond precision timestamps.

Supported PHP versions:

  • 5.4
  • 5.5
  • 5.6
  • 7.0
  • 7.1
  • 7.2

Supported OS:

  • Linux
  • macOS

Usage

# PHP 7.x example
use function nano\{
    second as nanosecond,
    time as nanotime
};

$currentNanoSecond = nanosecond(); // int(1381843170058990080)
$currentTimestampWithNanoSecondPrecision = nanotime(); // float(1381843170.059027910232543945312)

License

The nanotime is open source software licensed under the MIT License. See the LICENSE file for more.
Copyright (c) 2013 Lars Strojny
Copyright (c) 2017 Serghei Iakovlev

About

PHP bindings for libnanotime for nanosecond precision timestamps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 57.4%
  • M4 20.8%
  • PHP 16.7%
  • Shell 5.1%