static void swing_tenSecondProfile() { if (poorMansProfiling_isOn()) infoBox("Already profiling"); poorMansProfiling(); thread "Profile" { sleepSeconds(10); showText("10 Second Profile", poorMansProfiling_stopAndRenderResults(); } }