MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
266 stars 100 forks source link

Investigate getProcessCpuTime usage in acceptance tests #1774

Open cka-y opened 1 month ago

cka-y commented 1 month ago

Food for thought: I wonder if we could use [getProcessCpuTime](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getProcessCpuTime()) to get amore accurate time estimate, since AFAIK it gives the actual time used by the process (ie without interference from other processes that are sharing the CPU). Just an idea, I never used this myself.

_Originally posted by @jcpitre in https://github.com/MobilityData/gtfs-validator/pull/1771#discussion_r1616402082_