reset/set-mark..set-mark/get sequence.
*
* Platform.timeCheck("some message", Platform.TIME_MARK);
*
+ * reset...[set/mark]n...get
+ *
* @param msg
* @param mode
*/
{
case TIME_RESET:
time = mark = t;
+ duration = 0;
if (msg != null)
{
System.err.println("Platform: timer reset\t\t\t" + msg);
case TIME_MARK:
if (set > 0)
{
+ // total time between set/mark points
duration += (t - set);
}
else
case TIME_GET:
if (msg != null)
{
- System.err.println("Platform: timer dur\t" + ((t - time) / 1000f)
+ System.err.println("Platform: timer get\t" + ((t - time) / 1000f)
+ "\t" + ((duration) / 1000f) + "\t" + msg);
}
set = 0;