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

Side by Side Diff: util/misc/clock.h

Issue 807973002: win: clock implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | util/misc/clock.cc » ('j') | util/misc/clock_win.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 20 matching lines...) Expand all
31 //! 31 //!
32 //! \return The value of the system’s monotonic clock, in nanoseconds. 32 //! \return The value of the system’s monotonic clock, in nanoseconds.
33 uint64_t ClockMonotonicNanoseconds(); 33 uint64_t ClockMonotonicNanoseconds();
34 34
35 //! \brief Sleeps for the specified duration. 35 //! \brief Sleeps for the specified duration.
36 //! 36 //!
37 //! \param[in] nanoseconds The number of nanoseconds to sleep. The actual sleep 37 //! \param[in] nanoseconds The number of nanoseconds to sleep. The actual sleep
38 //! may be slightly longer due to latencies and timer resolution. 38 //! may be slightly longer due to latencies and timer resolution.
39 //! 39 //!
40 //! This function is resilient against the underlying `nanosleep()` system call 40 //! This function is resilient against the underlying `nanosleep()` system call
41 //! being interrupted by a signal. 41 //! being interrupted by a signal. On Windows, timeBeginPeriod is not adjusted.
Mark Mentovai 2014/12/16 23:06:53 nanosleep is a POSIXism, so that sentence should s
scottmg 2014/12/17 01:01:28 Done.
42 void SleepNanoseconds(uint64_t nanoseconds); 42 void SleepNanoseconds(uint64_t nanoseconds);
43 43
44 } // namespace crashpad 44 } // namespace crashpad
45 45
46 #endif // CRASHPAD_UTIL_MISC_CLOCK_H_ 46 #endif // CRASHPAD_UTIL_MISC_CLOCK_H_
OLDNEW
« no previous file with comments | « no previous file | util/misc/clock.cc » ('j') | util/misc/clock_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698