File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,4 @@ double cpu_timer(void) {
16
16
return (tspec.tv_nsec / 1.0e9 ) + tspec.tv_sec ;
17
17
}
18
18
19
- // Sleep in second.
20
- int cpu_timer_sleep (double sec) {
21
- struct timespec tspec;
22
- tspec.tv_sec = (time_t )sec;
23
- tspec.tv_nsec = (long )((sec - tspec.tv_sec ) * 1.0e9 );
24
- return nanosleep (&tspec, 0 );
25
- }
26
-
27
- // Sleep in nanosecond.
28
- int cpu_ntimer_sleep (long nsec) {
29
- struct timespec tspec;
30
- tspec.tv_sec = 0 ;
31
- tspec.tv_nsec = nsec;
32
- return nanosleep (&tspec, 0 );
33
- }
34
-
35
19
} // namespace ark
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ namespace ark {
8
8
9
9
// Measure current time in second.
10
10
double cpu_timer (void );
11
- // Sleep in second.
12
- int cpu_timer_sleep (double sec);
13
- // Sleep in nanosecond.
14
- int cpu_ntimer_sleep (long nsec);
15
11
16
12
} // namespace ark
17
13
You can’t perform that action at this time.
0 commit comments