Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
/ php-rdtsc Public archive

A simple PHP extension to read the processor timestamp counter

Notifications You must be signed in to change notification settings

canneverbe/php-rdtsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

### A simple PHP extension to read the processor Time Stamp Counter.

Requirements:

- PHP 5.2 or later

### Installation

# git clone git://github.com/canneverbe/php-rdtsc.git
# cd php-rdtsc
# phpize
# ./configure 
# make
# make install

### API 


Currently there is only one class with one static method, its prototype is:

mixed public static Rdtsc::ticks(void)

Returns the current processor timestamp

Return values:

An integer if value is less than LONG_MAX in your platform.

An string otherwise.


About

A simple PHP extension to read the processor timestamp counter

Resources

Stars

Watchers

Forks

Languages