Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/fs/ufs/     Datei vom 24.10.2025 mit Größe 4 kB image not shown  

Quelle  timer.vdmpp   Sprache: VDM

 

class Timer 

instance variables

  currentTime : nat := 1;

values 

  stepLength : nat = 1;

operations

public 
  StepTime: () ==> ()
  StepTime() == 
    currentTime := currentTime + stepLength;

public
  GetTime: () ==> nat 
  GetTime() == return currentTime;

end Timer

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland