Sponsored Content
Full Discussion: RDTSC use in C:
Top Forums Programming RDTSC use in C: Post 302241860 by calv on Tuesday 30th of September 2008 01:08:24 PM
Old 09-30-2008
rdtsc is not good for time measurement.

The problem is, that the CPU might throttle (with it does most of the time, when all processes are blocked), so a cpu clock might mean more time in that case. This is of course CPU and OS dependant.
 
CPU(8)                                                        System Manager's Manual                                                       CPU(8)

NAME
cpu - A tool for user and group administration SYNOPSIS
cpu [OPTIONS] DESCRIPTION
CPU is a tool for user administration, that was initially based on FreeBSD's pw(8). This tool will allow you to administer users and groups on several different backends currently including LDAP and flat files. Please see the website http://cpu.sourceforge.net for more informa- tion, or help improve the man page. OPTIONS
There are two kinds of options; options for CPU and options for CPU modules. There are only four options for CPU, they are as follows: -C configfile, --config configfile The configuration file to be used by CPU. The options in this file are used for CPU modules. -h, --help Display help for CPU. If specified in conjunction with the -m option the help for that particular module is displayed. -M method, --method=method This is the method of administration. Current options are ldap or passwd (passwd is not yet working). This can be specified in the configuration file. -V, --version Display the version of the software. SEE ALSO
cpu.conf(5) cpu-ldap(8) AUTHORS
Blake Matheny <bmatheny@purdue.edu> The current version of this software is always availabe at http://cpu.sourceforge.net BUGS
To report a bug or problem, please e-mail: cpu-users@lists.sourceforge.net TODO
See TODO file that accompanied software. Please e-mail us with any additional suggestions. 17 February 2003 CPU(8)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy