Items tagged with time

Hello, I'd like to generate some data from an audio file, like get the amplitude and the time, so that I can plot it with x = time and y = amplitude, do you know how to do that ?

This is what I did:

It seems like it's working. But is there a way to make the time spit out time smaller than seconds? And to automatically generate how much time it took rather than me looking at it and saying "well 43 seconds minus 41 seconds is 2 seconds"? I suspect there might be.


my problem is, that the time or profiling results are not fine enough.

For example time is only measureable in a 16ms step on my system. Is there any way to measure time more fine, perhaps in a 1ms step or nanoseconds?

Page 1 of 1