Displaying 2 results from an estimated 2 matches for "currenttimemillis".
2004 Aug 06
2
optimization possible?
hi,
i did some tests about performance in jspeex ...
uls@mainframe:~/eclipse/avrelay$ java TestClient
Diff1: 0
10
Diff2: 141
started.
uls@mainframe:~/eclipse/avrelay$
<p>{
SpeexEncoder e1=new SpeexEncoder();
e1.init(0,1,44100,1);
byte[] by1=new byte[320];
long l1=System.currentTimeMillis();
long l2=System.currentTimeMillis();
System.out.println("Diff1: "+(l2-l1));
e1.processData(by1,0,by1.length);
System.out.println(e1.getProcessedDataByteSize());
l2=System.currentTimeMillis();
System.out.println("Diff2: "+(l2-l1));
System.out.println...
2005 Nov 07
4
Time-measurement in milliseconds
Hi there
I'm loking for a time-measurement to measure time-differences in
milliseconds.
On my search, I only found the following:
- package "base": Sys.time()
-> only second-accuracy
- package "R.utils": System$currentTimeMillis()
-> returns integer of milliseconds, but accuracy is only whole
seconds too.
At the moment I run every bit of code to measure 1000-times to be able
to calculate time in milliseconds... ;-)
Has anyone a method to get milliseconds?
Thanks for any help.