Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Expose the CPU cycle counter via `\rdtsc()` to user-land using a php extension

License

NotificationsYou must be signed in to change notification settings

edorian/php-ext-rdtsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expose the__rdtsc CPU cycle counter to user-land using a php extension

Requirements

  • x64 platform
  • gcc

Usage

phpize./configuremakephp -d extension=modules/rdtsc.so example.php

Notes

Given thevarious caveats with__rdtsc this should be used with great care when trying to measure things.

There also is aPHP-FFI implementation that provides the same functionality available.

For most casesgetrusage() should be preferable.

References

About

Expose the CPU cycle counter via `\rdtsc()` to user-land using a php extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp