MantisBT - CMake
View Issue Details
0012261CMakeCMakepublic2011-06-09 13:582012-02-06 06:07
Pino Toscano 
Brad King 
normaltrivialN/A
closedfixed 
CMake-2-8 
CMake 2.8.6CMake 2.8.6 
0012261: Enable gettimeofday() for any glibc-based platform
Currently, SystemTools::GetTime() on UNIX can use gettimeofday() (if available) to get the time in microseconds resolution, otherwise the classic time() (with the resolution of seconds) is used.
Given gettimeofday() is POSIX (although marked obsolete in POSIX.1-2008) and thus implemented by glibc, it can be enabled for any platform using glibc.

Attached there is a git formatted patch with the proposed change.
No tags attached.
patch 0001-kwsys-enable-gettimeofday-for-any-glibc-based-platfo.patch (982) 2011-06-09 13:58
https://public.kitware.com/Bug/file/3925/0001-kwsys-enable-gettimeofday-for-any-glibc-based-platfo.patch
patch a6668106+0001-KWSys-Simplify-SystemTools-GetTime-implementation-12.patch (4,077) 2011-06-16 10:44
https://public.kitware.com/Bug/file/3942/a6668106%2B0001-KWSys-Simplify-SystemTools-GetTime-implementation-12.patch
Issue History
2011-06-09 13:58Pino ToscanoNew Issue
2011-06-09 13:58Pino ToscanoFile Added: 0001-kwsys-enable-gettimeofday-for-any-glibc-based-platfo.patch
2011-06-13 14:46David ColeAssigned To => David Cole
2011-06-13 14:46David ColeStatusnew => assigned
2011-06-16 10:44Brad KingFile Added: a6668106+0001-KWSys-Simplify-SystemTools-GetTime-implementation-12.patch
2011-06-16 10:45Brad KingNote Added: 0026880
2011-08-03 14:51Brad KingNote Added: 0027163
2011-08-03 14:51Brad KingStatusassigned => resolved
2011-08-03 14:51Brad KingResolutionopen => fixed
2011-08-03 14:51Brad KingAssigned ToDavid Cole => Brad King
2011-09-12 17:10David ColeFixed in Version => CMake 2.8.6
2011-09-12 17:10David ColeTarget Version => CMake 2.8.6
2012-02-06 06:07David ColeNote Added: 0028500
2012-02-06 06:07David ColeStatusresolved => closed

Notes
(0026880)
Brad King   
2011-06-16 10:45   
I propose patch

  a6668106+0001-KWSys-Simplify-SystemTools-GetTime-implementation-12.patch

instead which cleans up a bunch of historical cruft.
(0027163)
Brad King   
2011-08-03 14:51   
I applied the patch previously proposed:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=74e1156b [^]
(0028500)
David Cole   
2012-02-06 06:07   
Closing resolved issues that have not been updated in more than 4 months.