13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial on the System Classes...Sleep(1000);printf("Time since timer reset is: %f\n", timer->getTime());3. Example 2-18 shows additional print statements that validate the timer behavior:Example 2-18 Printing timer valuesprintf("\nTesting timer intevals:\n");printf("\nReseting timer\n");timer->reset();for(int i = 0; i < 4; i++){printf("Interval: %f\n", timer->getInterval());}printf("\nSleeping %d milliseconds\n", i*50*(i%2));Sleep(i*50*(i%2));printf("Interval: %f\n", timer->getInterval());4. Example 2-19 shows the final catch block:Example 2-19 Exception catch block...}catch(Exception& e){printf("An unexpected exception was thrown:\n%s\n", e.getMessage().getCharString() );}ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 2-12ID070710Non-Confidential - Draft - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!