aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/tsctime-help.pd
blob: e53730a53ca9a68fa697d04f346986ec5b04706c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#N canvas 508 124 632 550 10;
#X obj 0 0 doc_h;
#X obj 3 302 doc_c;
#X obj 0 521 doc_f;
#X obj 3 501 doc_also;
#X obj 3 426 doc_o 1;
#X obj 3 342 doc_i 2;
#X obj 14 372 doc_ii 0;
#X obj 14 394 doc_ii 1;
#X obj 14 456 doc_oo 0;
#X obj 97 372 doc_m i0 bang;
#X obj 97 394 doc_m i1 bang;
#X obj 97 456 doc_m o0 float;
#X text 232 372 reset timer;
#X text 232 394 trigger output;
#X obj 103 501 realtime;
#X obj 11 96 tsctime;
#X text 188 38 This is a super-high-resolution version of the [realtime]
class that does not look at the ordinary clock of the operating system
\, and instead uses the clock tick of the CPU itself. However \, if
you have a variable-clock CPU \, this will give you some kind of virtual
time.;
#X msg 50 45 bang;
#X msg 11 45 bang;
#X floatatom 14 122 10 0 0 0 - - -;
#X obj 78 100 realtime;
#X floatatom 78 122 10 0 0 0 - - -;
#X text 190 114 It's also possible that this has some other bugs related
to scaling. However \, even if it gives you really weird values \,
this object will give you very precise values in what is really the
wrong scale.;
#X text 192 171 if you are trying to measure real time with this \,
you should disable any CPU energy saving that may change the CPU's
clock speed. However \, if you want to measure CPU usage \, [tsctime]
is the ONLY of the time-objects to allow you to measure CPU usage reliably
while your clock speed changes.;
#X text 192 255 in assembly language \, [tsctime] is called "RDTSC"
\, and this is where [tsctime] got its name from.;
#X text 232 456 value in "milliseconds" (or lousy imitation thereof...
see intro text above.);
#X connect 3 1 14 0;
#X connect 9 1 12 0;
#X connect 10 1 13 0;
#X connect 11 1 25 0;
#X connect 15 0 19 0;
#X connect 17 0 15 1;
#X connect 17 0 20 1;
#X connect 18 0 15 0;
#X connect 18 0 20 0;
#X connect 20 0 21 0;