2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/165654We develop a new notion of security against timing attacks where the attacker is able to simultaneously observe the execution time of a program and the probability of the values of low variables. We then show how to measure the security of a program with respect to this notion via a computable estimate of the timing leakage and use this estimate for cost optimisation.16 pages, 2 figures, 4 tables. A shorter version is included in the proceedings of ICICS'08 - 10th International Conference on Information and Communications Security, 20-22 October, 2008 Birmingham, UKCryptography and SecurityProgramming LanguagesQuantifying Timing Leaks and Cost Optimisationtext