Skip to content

Content Tagged "timer"

Page 1 of 1

Launch a timed service - Strategies

December 17, 2014Category: Software
An app I am writing at the moment needs to have a periodic timer, i.e. a way to run a bit of code at regular intervals. After digging through different sources, I've found two recommended patterns to code such behaviour: Using a periodic alarm: Android has the concept of periodic alarms (think an…

Braindump: Use a Decorator to Time your Python Function

July 4, 2014Category: Software
In the programs I write these days I use timing methods to profile the code, mainly because I find it easier to split and sum deltas based on functions. For example, I have a script that loads an XML file, parses it into a relational-ish layout, and uploads the layout into a database. Therefore, I…

All tags