Commit f895ba21 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (PerfMonEvent-00-07-17)

	* Tagging PerfMonEvent-00-07-17.
	* Avoid redundant divisions.

2015-03-01  scott snyder  <snyder@bnl.gov>

	* Tagging PerfMonEvent-00-07-16.
	* PerfMonEvent/PyStore.h: Fix compilation warning.
parent caa5cc30
################################################################################
# Package: PerfMonEvent
################################################################################
# Declare the package name:
atlas_subdir( PerfMonEvent )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
GaudiKernel )
# External dependencies:
find_package( PythonLibs )
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_library( PerfMonEvent
src/PyStore.cxx
src/PyChrono.cxx
src/DataModel.cxx
src/MemStatsHooks.cxx
src/MallocStats.cxx
PUBLIC_HEADERS PerfMonEvent
INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${PYTHON_LIBRARIES} GaudiKernel rt
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} )
atlas_add_dictionary( PerfMonEventDict
PerfMonEvent/PerfMonEventDict.h
PerfMonEvent/selection.xml
INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${PYTHON_LIBRARIES} ${ROOT_LIBRARIES} rt GaudiKernel PerfMonEvent )
......@@ -29,7 +29,7 @@ namespace PerfMon {
#if !defined(__APPLE__)
struct timespec res;
/*int sc = */::clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &res);
return (res.tv_sec*1e3 + res.tv_nsec/1e6); // in milliseconds
return (res.tv_sec*1e3 + res.tv_nsec*1e-6); // in milliseconds
#else
return -999.;
#endif
......
......@@ -16,6 +16,9 @@
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif
#ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
#endif
#include "Python.h"
// STL includes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment