How to count time in nanoseconds?

Question/Issue:

I have a model in linux x86 format. For deployment I use linux-pythin-sdk edge-impulse-linux. On your github you have files for image classification, but there the time is calculated in milliseconds. how can I change the file to count time in nanoseconds?

Project ID:

Context/Use case:

Hi @kira9k

I’m not sure how it will work but you can try swapping time() for perf_counter_ns() :

time.time()

time.perf_counter_ns()

Best

Eoin