Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo Leute!

Also...

Ich habe eine Variable $uhrzeit2. Hier lese ich die Sekunden ein ( seit UNIX-Zeit ).

$uhrzeit2 = date("U");

Nun will ich die Millisekunden haben...

$uhrzeitr2 = $uhrzeit2 * 1000;

Als nächstes wollte ich die Millisekunden so runden das z.B. sowas rauskommt:

0.22427462 sekunden

Also bin ich hin und habs mit sprintf versucht aber geht irgendwie net?!?

$test = sprintf ("%01.8f",$uhrzeitr2);

Wieso geht das so net?

Naja geht das nicht?!? Ich multipliziere sie ja mit 1000 und so hab ich noch ne größere Zahl... Die hab ich ja dann mit float (f) Kommamäßig zu trennen... Ach irgendwie geht das alles voll net :(

Nun ist wohl doch net so einfach die Ladezeit der Website herauszugeben... :D :marine

Originally posted by kbyte

Die hab ich ja dann mit float (f) Kommamäßig zu trennen...

Sag doch einfach mal genau, was du mit "kommamäßig trennen" meinst. Die Zahl, die du da hast, hat keine Nachkommastellen, und wenn du sie mit 1000 multiplizierst, bleibt das so. Was soll denn hinterher da stehen?

jop hab ich gemerkt also im prinzip soll das so sein wie hier...

=> Page generated in 0.11223102 seconds

Deswegen dachte ich wenn ich mir die Sekunden hole und die dann zu Millisekunden mache dann könnte ich dies auf einen solchen wert ausgeben...

Aber irgendwie is das net der richtige Weg :D

HeHe hatte ich schon versucht ;) Ich sag nur

=> This function is only available on operating systems that support the gettimeofday() system call. <= :D

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.