app: log startup time
This commit is contained in:
parent
1f731072ac
commit
1ad972b59b
1 changed files with 2 additions and 1 deletions
3
app.tsx
3
app.tsx
|
|
@ -19,6 +19,7 @@ App.start({
|
||||||
icons: "assets/icons",
|
icons: "assets/icons",
|
||||||
iconTheme: "Adwaita",
|
iconTheme: "Adwaita",
|
||||||
main() {
|
main() {
|
||||||
|
const now = Date.now();
|
||||||
loadStyleAsync().catch(console.error);
|
loadStyleAsync().catch(console.error);
|
||||||
|
|
||||||
<Launcher />;
|
<Launcher />;
|
||||||
|
|
@ -27,7 +28,7 @@ App.start({
|
||||||
Monitors.get_default().forEach(m => <Bar monitor={m} />);
|
Monitors.get_default().forEach(m => <Bar monitor={m} />);
|
||||||
<Popdowns />;
|
<Popdowns />;
|
||||||
|
|
||||||
console.log("Caelestia started");
|
console.log(`Caelestia started in ${Date.now() - now}ms`);
|
||||||
},
|
},
|
||||||
requestHandler(request, res) {
|
requestHandler(request, res) {
|
||||||
if (request === "reload css") loadStyleAsync().catch(console.error);
|
if (request === "reload css") loadStyleAsync().catch(console.error);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue