HPInc / HP-Digital-Microfluidics

HP Digital Microfluidics Software Platform and Libraries
MIT License
2 stars 0 forks source link

add timers to the keep_alive method to inspect the times the different methods take #181

Open EvanKirshenbaum opened 5 months ago

EvanKirshenbaum commented 5 months ago

We want to see how long the methods need to execute in order to see what process hogs the CPU. For this we will use the [time.process_time()](https://docs.python.org/dev/library/time.html#time.process_time) method which will:

Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition.

For timing systemwide we can use time.time():

Return the time in seconds since the epoch as a floating point number...

Migrated from internal repository. Originally created by Mark Huber on Jun 21, 2022 at 3:39 PM PDT.