Raspberry Pi Stress Test Code In Xojo?

Is there any Xojo source code that will stress test the Raspberry Pi to help determine if the cooling measures (Heat Sinks and Fans) are helping?

I know there are tools that can be downloaded and run to stress the Pi, I’d rather have some source code in Xojo to do it.