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
0efafb39
Kaydet (Commit)
0efafb39
authored
Ara 28, 1993
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rot out all uses of time.milli*().
Slightly improve debug output.
üst
605909dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Vrec.py
Demo/sgi/video/Vrec.py
+9
-8
No files found.
Demo/sgi/video/Vrec.py
Dosyayı görüntüle @
0efafb39
...
...
@@ -293,7 +293,7 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \
initaudio
(
audiofilename
,
audiostop
,
audiodone
)
gl
.
wintitle
(
'(rec) '
+
filename
)
lastid
=
0
t0
=
time
.
millitimer
()
t0
=
time
.
time
()
count
=
0
ids
=
[]
v
.
InitContinuousCapture
(
info
)
...
...
@@ -301,7 +301,7 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \
try
:
cd
,
id
=
v
.
GetCaptureData
()
except
sv
.
error
:
#time.
millisleep(
10) # XXX is this necessary?
#time.
sleep(0.0
10) # XXX is this necessary?
sgi
.
nap
(
1
)
# XXX Try by Jack
continue
ids
.
append
(
id
)
...
...
@@ -322,15 +322,16 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \
cd
.
UnlockCaptureData
()
if
filename
:
queue
.
put
((
data
,
int
(
id
*
tpf
)))
t1
=
time
.
millitimer
()
t1
=
time
.
time
()
gl
.
wintitle
(
'(busy) '
+
filename
)
print
lastid
,
'fields in'
,
t1
-
t0
,
'm
sec'
,
print
'--'
,
0.1
*
int
(
lastid
*
10000.0
/
(
t1
-
t0
)
),
'fields/sec'
print
lastid
,
'fields in'
,
round
(
t1
-
t0
,
3
),
'
sec'
,
print
'--'
,
round
(
lastid
/
(
t1
-
t0
),
1
),
'fields/sec'
print
'Captured'
,
count
*
2
,
'fields,'
,
print
0.1
*
int
(
count
*
20000.0
/
(
t1
-
t0
)
),
'f/s'
,
print
round
(
count
*
2
/
(
t1
-
t0
),
1
),
'f/s'
,
if
lastid
:
print
count
*
200.0
/
lastid
,
'
%
,'
,
print
count
*
rate
*
200.0
/
lastid
,
'
%
of wanted rate'
,
print
'('
,
print
round
(
count
*
200.0
/
lastid
),
'
%
, or'
,
print
round
(
count
*
rate
*
200.0
/
lastid
),
'
%
of wanted rate )'
,
print
if
ids
:
print
'Ids:'
,
...
...
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