/haiku-fatelf/src/apps/mediaplayer/support/ |
H A D | DurationToString.cpp | 13 duration_to_string(int32 seconds, char* string, size_t stringSize) argument 15 bool negative = seconds < 0; 17 seconds = -seconds; 19 int32 hours = seconds / 3600; 20 seconds -= hours * 3600; 21 int32 minutes = seconds / 60; 22 seconds = seconds % 60; 26 negative ? "-" : "", hours, minutes, seconds); [all...] |
H A D | DurationToString.h | 12 void duration_to_string(int32 seconds, char* string, size_t stringSize);
|
/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | sleep.c | 14 sleep(unsigned seconds) argument 23 usecs *= (bigtime_t) seconds; 30 return seconds - (unsigned)((system_time() - start) / 1000000);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | xnanosleep.c | 40 SECONDS seconds after the time this function is called. 47 xnanosleep (double seconds) argument 59 ? TIME_T_MAX < seconds 61 ? TIME_T_MAX < (long double) seconds 62 : TIME_T_MAX <= (long double) seconds); 66 assert (0 <= seconds); 68 /* Separate whole seconds from nanoseconds. */ 71 time_t floor_seconds = seconds; 72 double ns = BILLION * (seconds - floor_seconds);
|
H A D | nanosleep.c | 56 time_t seconds = requested_delay->tv_sec; local 60 while (limit < seconds) 65 seconds -= limit; 70 remaining_delay->tv_sec += seconds; 81 intermediate.tv_sec = seconds; 105 /* Suspend execution for at least *TS_DELAY seconds. */ 127 /* Suspend execution for at least *REQUESTED_DELAY seconds. The
|
H A D | posixtm.c | 161 /* Handle seconds. */ 168 int seconds; local 173 seconds = 10 * (dot[0] - '0') + dot[1] - '0'; 175 tm->tm_sec = seconds; 210 Do not reject times that specify "60" as the number of seconds. */
|
/haiku-fatelf/src/apps/debuganalyzer/util/ |
H A D | TimeUtils.h | 15 int seconds; member in struct:decomposed_bigtime 23 int seconds; member in struct:decomposed_nanotime 35 decomposed.seconds = time % 60; 52 decomposed.seconds = time % 60; 69 decomposed.hours, decomposed.minutes, decomposed.seconds, 91 decomposed.hours, decomposed.minutes, decomposed.seconds,
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | clock.c | 72 int seconds, seconds_fraction; local 77 seconds = timestamp % 60; 79 fprintf (fp, "%ldm%d.%03ds", minutes, seconds, seconds_fraction);
|
H A D | timeval.c | 100 /* Convert a pointer to a struct timeval to seconds and thousandths of a 136 int seconds, seconds_fraction; local 141 seconds = timestamp % 60; 143 fprintf (fp, "%ldm%d.%03ds", minutes, seconds, seconds_fraction);
|
/haiku-fatelf/headers/os/media/ |
H A D | TimeCode.h | 41 int* seconds, int* frames, const timecode_info* code = NULL); 43 status_t timecode_to_us(int hours, int minutes, int seconds, int frames, 47 int* seconds, int* frames, const timecode_info* code = NULL); 49 status_t timecode_to_frames(int hours, int minutes, int seconds, int frames, 64 BTimeCode(int hours, int minutes, int seconds, 69 void SetData(int hours, int minutes, int seconds,
|
/haiku-fatelf/headers/os/package/hpkg/ |
H A D | PackageEntry.h | 47 void SetAccessTime(uint32 seconds) argument 48 { fAccessTime.tv_sec = seconds; } 51 void SetModifiedTime(uint32 seconds) argument 52 { fModifiedTime.tv_sec = seconds; } 55 void SetCreationTime(uint32 seconds) argument 56 { fCreationTime.tv_sec = seconds; }
|
/haiku-fatelf/src/add-ons/kernel/partitioning_systems/session/ |
H A D | scsi-mmc.h | 78 - Each msf minute corresponds to 60 msf seconds 84 uint8 seconds; member in struct:__anon2549 96 make_msf_address(uint8 minutes, uint8 seconds, uint8 frames) argument 101 result.seconds = seconds; 114 + (CDROM_FRAMES_PER_SECOND * msf.seconds) 149 uint8 seconds; member in struct:__anon2552
|
/haiku-fatelf/headers/private/kernel/arch/ |
H A D | real_time_clock.h | 23 void arch_rtc_set_hw_time(uint32 seconds); 24 // Set HW clock to 'seconds' since 1/1/1970 26 // Returns number of seconds since 1/1/1970 as stored in HW
|
/haiku-fatelf/src/system/kernel/arch/arm/ |
H A D | arch_real_time_clock.cpp | 32 arch_rtc_set_hw_time(uint32 seconds) argument
|
/haiku-fatelf/src/kits/media/ |
H A D | TimeCode.cpp | 10 status_t us_to_timecode(bigtime_t micros, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code) argument 35 return frames_to_timecode(l_frames, hours, minutes, seconds, frames, code); 38 status_t timecode_to_us(int hours, int minutes, int seconds, int frames, bigtime_t * micros, const timecode_info * code) argument 44 if (timecode_to_frames(hours, minutes, seconds, frames, &l_frames, code) == B_OK) { 70 status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code) argument 128 // convert frames to seconds leaving the remainder as frames 129 *seconds = l_frames / fps_div; // DIV 133 *minutes = *seconds / 60; 134 *seconds = *seconds 142 timecode_to_frames(int hours, int minutes, int seconds, int frames, int32 * l_frames, const timecode_info * code) argument 275 BTimeCode(int hours, int minutes, int seconds, int frames, timecode_type type) argument 295 SetData(int hours, int minutes, int seconds, int frames) argument [all...] |
/haiku-fatelf/src/system/kernel/arch/mipsel/ |
H A D | arch_real_time_clock.cpp | 31 arch_rtc_set_hw_time(uint32 seconds) argument
|
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | sleep.c | 49 Pause for NUMBER seconds. SUFFIX may be `s' for seconds (the default),\n\ 66 be the NUL byte or `s' to denote seconds, `m' for minutes, `h' for 103 double seconds = 0.0; local 141 seconds += s; 147 if (xnanosleep (seconds))
|
/haiku-fatelf/src/system/kernel/ |
H A D | real_time_clock.cpp | 50 uint32 seconds; local 52 seconds = (arch_rtc_get_system_time_offset(sRealTimeData) + system_time() 55 arch_rtc_set_hw_time(seconds); 157 /*! Converts the \a tm data to seconds. Note that the base year is not 182 rtc_secs_to_tm(uint32 seconds, struct tm *t) argument 188 l = seconds / 86400 + 68569 + RTC_EPOCH_JULIAN_DAY; 203 seconds = seconds % RTC_SECONDS_DAY; 204 t->tm_hour = seconds / 3600; 206 seconds [all...] |
/haiku-fatelf/src/bin/zip/ |
H A D | mktime.c | 47 /* Return the equivalent in seconds past 12:00:00 a.m. Jan 1, 1970 GMT 175 /* Return the equivalent in seconds past 12:00:00 a.m. Jan 1, 1970 GMT 187 int years, months, days, hours, minutes, seconds; local 194 seconds = tm->tm_sec; /* 0..61 in ANSI C. */ 196 ADJUST_TM(seconds, minutes, 60) 223 tm->tm_sec = seconds; 249 (minutes == TM_MIN_MAX && seconds > TM_SEC_MAX) ))))))) 256 (unsigned long)(60 * minutes + seconds));
|
/haiku-fatelf/headers/private/kernel/ |
H A D | real_time_clock.h | 34 void rtc_secs_to_tm(uint32 seconds, struct tm *t);
|
/haiku-fatelf/src/add-ons/translators/exr/openexr/ilmimf/ |
H A D | ImfTimeCode.h | 51 // seconds integer, range 0 - 59 87 // 8 - 11 seconds units seconds units seconds units 88 // 12 - 14 seconds tens seconds tens seconds tens 140 int seconds, 176 int seconds () const;
|
/haiku-fatelf/src/system/kernel/arch/ppc/ |
H A D | arch_real_time_clock.cpp | 52 arch_rtc_set_hw_time(uint32 seconds) argument 54 PPCPlatform::Default()->SetHardwareRTC(seconds);
|
/haiku-fatelf/src/apps/mediaplayer/supplier/ |
H A D | SubTitlesSRT.cpp | 79 int seconds; local 82 &seconds, &milliSeconds) != 4) { 89 + (bigtime_t)seconds * 1000000LL 95 &seconds, &milliSeconds) != 4) { 102 + (bigtime_t)seconds * 1000000LL
|
/haiku-fatelf/src/apps/cortex/InfoView/ |
H A D | FileNodeInfoView.cpp | 130 int hours, minutes, seconds, frames; local 131 us_to_timecode(duration, &hours, &minutes, &seconds, &frames); 133 sprintf(buffer, "%02d:%02d:%02d:%02d", hours, minutes, seconds, frames);
|
/haiku-fatelf/src/bin/makeudfimage/ |
H A D | Statistics.cpp | 95 // seconds 96 uint32 seconds = time % 60; local 97 sprintf(buffer, "%ld second%s", seconds, seconds == 1 ? "" : "s");
|