package phenax.utils fun recordDuration(durationSeconds: Int) { System.setProperty("phenax.record.frameCount", (60 * durationSeconds).toString()) } fun recordDuration(): Int? = System.getProperty("phenax.record.frameCount")?.toIntOrNull() fun recordingEnabled(): Boolean = System.getenv("RECORD") != null