Name: Microtimer.mfx
Description: A timer object that is capable of measuring microseconds (millionths of a second, or μs)
Expressions: Time since application start, frame start, or custom timer start. Each available in float numbers (eg. 0.000872 seconds) or integers (eg. 872 microseconds)
Conditions: none
Actions: Reset custom timer
Created by: Looki
Commissioned by: Volnaiskra
I commissioned this object from Looki because I needed it myself to build a Please login to see this link.. But I'm releasing it free for everyone to use.
The existing Fusion timer object measures only in milliseconds, and can only measure between one frame and the next, not inside the frame. The Date & Time object can measure inside the frame, but only in hundredths of a second. Both methods are much too coarse to be useful for performance profiling. The Microtimer object can measure in microseconds, within the frame. This makes it possible to measure sections of code finely enough to get meaningful performance measurements, for use in finding bottlenecks and comparing performance between different parts of your code. If you'd like a readymade and user-friendly code profiler, you can purchase the one I made from the clickstore: Please login to see this link..
Of course, there are probably also other uses for Microtimer, other than profiling.