Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: mozilla/nsprpub/pr/src/md/windows/ntinrval.c

Issue 14249009: Change the NSS and NSPR source tree to the new directory structure to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mozilla/nsprpub/pr/src/md/windows/ntgc.c ('k') | mozilla/nsprpub/pr/src/md/windows/ntmisc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 /*
7 * NT interval timers
8 *
9 */
10
11 #include "primpl.h"
12
13 #ifdef WINCE
14 typedef DWORD (*IntervalFuncType)(void);
15 static IntervalFuncType intervalFunc;
16 #endif
17
18 void
19 _PR_MD_INTERVAL_INIT()
20 {
21 #ifdef WINCE
22 HMODULE mmtimerlib = LoadLibraryW(L"mmtimer.dll"); /* XXX leaked! */
23 if (mmtimerlib) {
24 intervalFunc = (IntervalFuncType)GetProcAddress(mmtimerlib,
25 "timeGetTime");
26 } else {
27 intervalFunc = &GetTickCount;
28 }
29 #endif
30 }
31
32 PRIntervalTime
33 _PR_MD_GET_INTERVAL()
34 {
35 /* milliseconds since system start */
36 #ifdef WINCE
37 return (*intervalFunc)();
38 #else
39 return timeGetTime();
40 #endif
41 }
42
43 PRIntervalTime
44 _PR_MD_INTERVAL_PER_SEC()
45 {
46 return 1000;
47 }
OLDNEW
« no previous file with comments | « mozilla/nsprpub/pr/src/md/windows/ntgc.c ('k') | mozilla/nsprpub/pr/src/md/windows/ntmisc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698