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

Side by Side Diff: src/platform/vboot_reference/tests/timer_utils.h

Issue 596079: SHA* digest function speed test. (Closed)
Patch Set: Add explicit type cast. Created 10 years, 10 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
OLDNEW
(Empty)
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 #ifndef VBOOT_REFERENCE_TIMER_UTILS_H_
7 #define VBOOT_REFERENCE_TIMER_UTILS_H_
8
9 #include <inttypes.h>
10 #include <time.h>
11
12 typedef struct ClockTimer {
13 struct timespec start_time;
14 struct timespec end_time;
15 } ClockTimerState;
16
17 /* Start timer and update [ct]. */
18 void StartTimer(ClockTimerState* ct);
19
20 /* Stop timer and update [ct]. */
21 void StopTimer(ClockTimerState* ct);
22
23 /* Get duration in milliseconds. */
24 uint32_t GetDurationMsecs(ClockTimerState* ct);
25
26 #endif /* VBOOT_REFERENCE_TIMER_UTILS_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/tests/sha_benchmark.c ('k') | src/platform/vboot_reference/tests/timer_utils.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698