Print this page
4823 don't open-code NSEC2MSEC and MSEC2NSEC

*** 1,12 **** /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ --- 1,10 ----
*** 315,325 **** tval.tv_sec = msec / MILLISEC; tval.tv_usec = (MICROSEC / MILLISEC) * (msec % MILLISEC); #ifdef _SOLARIS_SDK start_time = gethrtime(); ! tv_time = (hrtime_t)msec * (NANOSEC / MILLISEC); #else start_time = (long)time(NULL); #endif } else { tval.tv_sec = 0; --- 313,323 ---- tval.tv_sec = msec / MILLISEC; tval.tv_usec = (MICROSEC / MILLISEC) * (msec % MILLISEC); #ifdef _SOLARIS_SDK start_time = gethrtime(); ! tv_time = MSEC2NSEC(msec); #else start_time = (long)time(NULL); #endif } else { tval.tv_sec = 0;