Changeset 33930 in webkit for trunk/JavaScriptCore/kjs/DateMath.cpp
- Timestamp:
- May 20, 2008, 6:58:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/DateMath.cpp
r31813 r33930 276 276 double getCurrentUTCTime() 277 277 { 278 return floor(getCurrentUTCTimeWithMicroseconds()); 279 } 280 281 double getCurrentUTCTimeWithMicroseconds() 282 { 278 283 #if PLATFORM(WIN_OS) 284 // FIXME: the implementation for Windows is only millisecond resolution. 279 285 #if COMPILER(BORLAND) 280 286 struct timeb timebuffer; … … 288 294 struct timeval tv; 289 295 gettimeofday(&tv, 0); 290 double utc = floor(tv.tv_sec * msPerSecond + tv.tv_usec / 1000);296 double utc = tv.tv_sec * msPerSecond + tv.tv_usec / 1000.0; 291 297 #endif 292 298 return utc;
Note:
See TracChangeset
for help on using the changeset viewer.