Timer perido 1/2 != 0.5 ??
Salut,
Par moment je veux bien être "cucu" mais je trouve rigolo que
[NSTimer scheduledTimerWithTimeInterval:1/2 target:self selector:@selector(actionMan userInfo:nil repeats:YES]; prenne 25% de CPU alors que
[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(actionMan userInfo:nil repeats:YES] ne "prend rien"
Par moment je veux bien être "cucu" mais je trouve rigolo que
[NSTimer scheduledTimerWithTimeInterval:1/2 target:self selector:@selector(actionMan userInfo:nil repeats:YES]; prenne 25% de CPU alors que
[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(actionMan userInfo:nil repeats:YES] ne "prend rien"
Connectez-vous ou Inscrivez-vous pour répondre.
Réponses