Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1479190c
Kaydet (Commit)
1479190c
authored
Şub 07, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1267668 Logically dead code
Change-Id: Id9458f55efa4d27914c24b8ab7c4ced081e19626
üst
5e691dbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
time.cxx
sal/osl/unx/time.cxx
+4
-13
No files found.
sal/osl/unx/time.cxx
Dosyayı görüntüle @
1479190c
...
...
@@ -25,7 +25,6 @@
#include <osl/diagnose.h>
#include <osl/time.h>
#include <time.h>
#include <assert.h>
#include <unistd.h>
#ifdef __MACH__
...
...
@@ -269,14 +268,11 @@ void sal_initGlobalTimer(void)
clock_get_time
(
cclock
,
&
startTime
);
mach_port_deallocate
(
mach_task_self
(),
cclock
);
#else
/* ! (MACOSX || IOS) */
int
res
;
#if defined(USE_CLOCK_GETTIME)
res
=
clock_gettime
(
CLOCK_REALTIME
,
&
startTime
);
clock_gettime
(
CLOCK_REALTIME
,
&
startTime
);
#else
/* Ndef USE_CLOCK_GETTIME */
res
=
gettimeofday
(
&
startTime
,
NULL
);
gettimeofday
(
&
startTime
,
NULL
);
#endif
/* NDef USE_CLOCK_GETTIME */
assert
(
res
==
0
);
(
void
)
res
;
#endif
/* ! (MACOSX || IOS) */
}
...
...
@@ -296,17 +292,12 @@ sal_uInt32 SAL_CALL osl_getGlobalTimer()
nSeconds
=
(
nSeconds
*
1000
)
+
(
long
)
((
currentTime
.
tv_nsec
-
startTime
.
tv_nsec
)
/
1000000
);
#else
osl_time_t
currentTime
;
int
res
;
#if defined(USE_CLOCK_GETTIME)
res
=
clock_gettime
(
CLOCK_REALTIME
,
&
currentTime
);
clock_gettime
(
CLOCK_REALTIME
,
&
currentTime
);
#else
res
=
gettimeofday
(
&
currentTime
,
NULL
);
gettimeofday
(
&
currentTime
,
NULL
);
#endif
assert
(
res
==
0
);
if
(
res
!=
0
)
return
0
;
nSeconds
=
(
sal_uInt32
)(
currentTime
.
tv_sec
-
startTime
.
tv_sec
);
#if defined(USE_CLOCK_GETTIME)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment