[0613ab]: libutil / op_cpufreq.h  Maximize  Restore  History

Download this file

32 lines (26 with data), 549 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @file op_cpufreq.h
* get cpu frequency declaration
*
* @remark Copyright 2011 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
* @author Suravee Suthikulpanit
*/
#ifndef OP_CPUFREQ_H
#define OP_CPUFREQ_H
#if defined(__cplusplus)
extern "C" {
#endif
/*
* return the estimated cpu frequency in Mhz,
* return 0 if this information
* is not avalaible e.g. sparc64 with a non SMP kernel
*/
double op_cpu_frequency(void);
#if defined(__cplusplus)
}
#endif
#endif /* !OP_CPUFREQ_H */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks