Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
5a682c9c
Kaydet (Commit)
5a682c9c
authored
Eyl 02, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.5 (monotonic)
üst
40e47f69
5ad5821d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
pytime.c
Python/pytime.c
+3
-13
No files found.
Python/pytime.c
Dosyayı görüntüle @
5a682c9c
...
...
@@ -601,12 +601,8 @@ _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
static
int
pymonotonic
_new
(
_PyTime_t
*
tp
,
_Py_clock_info_t
*
info
,
int
raise
)
pymonotonic
(
_PyTime_t
*
tp
,
_Py_clock_info_t
*
info
,
int
raise
)
{
#ifdef Py_DEBUG
static
int
last_set
=
0
;
static
_PyTime_t
last
=
0
;
#endif
#if defined(MS_WINDOWS)
ULONGLONG
result
;
...
...
@@ -697,12 +693,6 @@ pymonotonic_new(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
}
if
(
_PyTime_FromTimespec
(
tp
,
&
ts
,
raise
)
<
0
)
return
-
1
;
#endif
#ifdef Py_DEBUG
/* monotonic clock cannot go backward */
assert
(
!
last_set
||
last
<=
*
tp
);
last
=
*
tp
;
last_set
=
1
;
#endif
return
0
;
}
...
...
@@ -711,7 +701,7 @@ _PyTime_t
_PyTime_GetMonotonicClock
(
void
)
{
_PyTime_t
t
;
if
(
pymonotonic
_new
(
&
t
,
NULL
,
0
)
<
0
)
{
if
(
pymonotonic
(
&
t
,
NULL
,
0
)
<
0
)
{
/* should not happen, _PyTime_Init() checked that monotonic clock at
startup */
assert
(
0
);
...
...
@@ -725,7 +715,7 @@ _PyTime_GetMonotonicClock(void)
int
_PyTime_GetMonotonicClockWithInfo
(
_PyTime_t
*
tp
,
_Py_clock_info_t
*
info
)
{
return
pymonotonic
_new
(
tp
,
info
,
1
);
return
pymonotonic
(
tp
,
info
,
1
);
}
int
...
...
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